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



wp_cache_add_multiple › WordPress Function

Since6.0.0
Deprecatedn/a
wp_cache_add_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::add_multiple()
Returns:
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false if cache key and group already exist.
Defined at:
Codex:

Adds multiple values to the cache in one call.



Source

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

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