wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_cache_incr › WordPress Function

Since3.3.0
已弃用n/a
wp_cache_incr ( $key, $offset = 1, $group = '' )
参数: (3)
  • (int|string) $key The key for the cache contents that should be incremented.
    Required: Yes
  • (int) $offset Optional. The amount by which to increment the item's value. Default 1.
    Required: No
    默认: 1
  • (string) $group Optional. The group the key is in. Default empty.
    Required: No
    默认: (empty)
查看:
  • WP_Object_Cache::incr()
返回:
  • (int|false) The item's new value on success, false on failure.
定义在:
文档:

Increments numeric cache item's value.



源码

function wp_cache_incr( $key, $offset = 1, $group = '' ) {
	global $wp_object_cache;

	return $wp_object_cache->incr( $key, $offset, $group );
}