wp_cache_incr

函数
wp_cache_incr ( $key, $offset = 1, $group = '' )
参数
  • (int|string) $key The key for the cache contents that should be incremented.
    Required:
  • (int) $offset Optional. The amount by which to increment 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::incr()
定义位置
相关方法
wp_cache_decrwp_cache_initwp_cache_resetwp_cache_closewp_cache_add
引入
3.3.0
弃用
-

wp_cache_incr: 这个函数将缓存中指定的键的值增加一个指定的数量。

增加数字缓存项的值。

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

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

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-05 19:32:59

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

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

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