wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_cache_add_multiple › WordPress Function

Da6.0.0
Deprecaton/a
wp_cache_add_multiple ( $data, $group = '', $expire = 0 )
Parametri: (3)
  • (array) $data Array of keys and values to be set.
    Richiesto:
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Richiesto: No
    Default: (vuoto)
  • (int) $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
    Richiesto: No
    Default:
Vedi:
  • WP_Object_Cache::add_multiple()
Ritorna:
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false if cache key and group already exist.
Definito a:
Codex:

Adds multiple values to the cache in one call.



Sorgenti

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

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