wp_cache_add_multiple


wp_cache_add_multiple ( $data, $group = '', $expire = 0 )

Parameters:
  • (array) data Array of keys and values to be set.
  • (string) group Optional. Where the cache contents are grouped. Default empty.
  • (int) expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
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:

Description

Adds multiple values to the cache in one call.

Related Functions

wp_cache_get_multiple, wp_cache_set_multiple, wp_cache_delete_multiple, wp_cache_add, wp_cache_delete

Top Google Results

User discussions

wpseek mobile