wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_cache_set_multiple › WordPress Function

Since6.0.0
Deprecatedn/a
wp_cache_set_multiple ( $data, $group = '', $expire = 0 )
Parameters: (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
    Default: (empty)
  • (int) $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
    Required: No
    Default:
See:
  • WP_Object_Cache::set_multiple()
Returns:
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false on failure.
Defined at:
Codex:

Sets multiple values to the cache in one call.



Source

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

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