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



wp_cache_decr ›

Since3.3.0
已弃用n/a
wp_cache_decr ( $key, $offset = 1, $group = '' )
参数: (3)
  • (int|string) $key The cache key to decrement.
    Required: Yes
  • (int) $offset Optional. The amount by which to decrement 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::decr()
返回:
  • (false|int) False on failure, the item's new value on success.
定义在:
文档:

Decrements numeric cache item's value.



源码

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

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