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



wp_cache_get_multiple › WordPress Function

Since5.5.0
已弃用n/a
wp_cache_get_multiple ( $keys, $group = '', $force = false )
参数: (3)
  • (array) $keys Array of keys under which the cache contents are stored.
    Required: Yes
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Required: No
    默认: (empty)
  • (bool) $force Optional. Whether to force an update of the local cache from the persistent cache. Default false.
    Required: No
    默认: false
查看:
  • WP_Object_Cache::get_multiple()
返回:
  • (array) Array of return values, grouped by key. Each value is either the cache contents on success, or false on failure.
定义在:
文档:

Retrieves multiple values from the cache in one call.



源码

function wp_cache_get_multiple( $keys, $group = '', $force = false ) {
	global $wp_object_cache;

	return $wp_object_cache->get_multiple( $keys, $group, $force );
}