wp_cache_decr

函数
wp_cache_decr ( $key, $offset = 1, $group = '' )
参数
  • (int|string) $key The cache key to decrement.
    Required:
  • (int) $offset Optional. The amount by which to decrement the item's value. Default 1.
    Required:
    Default: 1
  • (string) $group Optional. The group the key is in. Default empty.
    Required:
    Default: (empty)
返回值
  • (int|false) The item's new value on success, false on failure.
相关
  • WP_Object_Cache::decr()
定义位置
相关方法
wp_cache_incrwp_cache_setwp_cache_getwp_cache_addwp_cache_delete
引入
3.3.0
弃用
-

wp_cache_decr: 这个函数将缓存中的指定键的值减少了一个指定的数量。

减少数字缓存项目的值。

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

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

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-15 02:36:46

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: