WordPress 常用函数 / wp_cache_incr

递增数字缓存项的值。

<?php wp_cache_incr( $key, $offset = 1, $group = '' ); ?>

$key
(int|string) (required) 数字缓存中的名字
Default: 无

$offset
(int) (optional) 每次递增的值。
Default: 1

$group
(string) (optional) 数字缓存的组名。
Default: 'default'

(bool|int)
失败返回 false,否则返回递增之后的数据。

Since 3.3.0

wp-includes/cache.php