wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_cache_add_multiple › WordPress Function

Seit6.0.0
Veraltetn/v
wp_cache_add_multiple ( $data, $group = '', $expire = 0 )
Parameter: (3)
  • (array) $data Array of keys and values to be set.
    Erforderlich: Ja
  • (string) $group Optional. Where the cache contents are grouped. Default empty.
    Erforderlich: Nein
    Standard: (leer)
  • (int) $expire Optional. When to expire the cache contents, in seconds. Default 0 (no expiration).
    Erforderlich: Nein
    Standard:
Siehe:
  • WP_Object_Cache::add_multiple()
Gibt zurück:
  • (bool[]) Array of return values, grouped by key. Each value is either true on success, or false if cache key and group already exist.
Definiert in:
Codex:

Adds multiple values to the cache in one call.



Quellcode

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

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