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



wp_cache_set_multiple › WordPress Function

Since6.0.0
已弃用n/a
wp_cache_set_multiple ( $data, $group = '', $expire = 0 )
参数: (3)
  • (array) $data Array of keys and values to be set.
    Required: Yes
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Required: No
    默认: (empty)
  • (int) $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
    Required: No
    默认:
查看:
  • WP_Object_Cache::set_multiple()
返回:
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false on failure.
定义在:
文档:

Sets multiple values to the cache in one call.



源码

function wp_cache_set_multiple( array $data, $group = '', $expire = 0 ) {
	global $wp_object_cache;

	return $wp_object_cache->set_multiple( $data, $group, $expire );
}