wp_cache_add_multiple()
Adds multiple values to the cache in one call.
Хуков нет.
Возвращает
true|false[]
. Array of return values, grouped by key. Each value is either true on success, or false if cache key and group already exist.
Использование
wp_cache_add_multiple( $data, $group, $expire );
- $data(массив) (обязательный)
- Array of keys and values to be set.
- $group(строка)
- Where the cache contents are grouped.
По умолчанию: '' - $expire(int)
- When to expire the cache contents, in seconds.
По умолчанию: 0 (no expiration)
Заметки
- Смотрите: WP_Object_Cache::add_multiple()
- Global. WP_Object_Cache. $wp_object_cache Object cache global instance.
Список изменений
С версии 6.0.0 | Введена. |
Код wp_cache_add_multiple() wp cache add multiple WP 6.7.2
function wp_cache_add_multiple( array $data, $group = '', $expire = 0 ) { global $wp_object_cache; return $wp_object_cache->add_multiple( $data, $group, $expire ); }