WordPress\AiClientDependencies\Psr\SimpleCache

CacheInterface::setMultiple │ public │ WP 1.0

Persists a set of key => value pairs in the cache, with an optional TTL.

Метод класса: CacheInterface{}

Хуков нет.

Возвращает

bool. True on success and false on failure.

Использование

$CacheInterface = new CacheInterface();
$CacheInterface->setMultiple( $values, $ttl );
$values(iterable) (обязательный)
A list of key => value pairs for a multiple-set operation.
$ttl(null|int|\DateInterval)
The TTL value of this item. If no value is sent and the driver supports TTL then the library may set a default value for it or let the driver take care of that.
По умолчанию: null

Код CacheInterface::setMultiple() WP 7.1.2

public function setMultiple($values, $ttl = null);