WordPress\AiClientDependencies\Psr\SimpleCache
CacheInterface::setMultiple
Persists a set of key => value pairs in the cache, with an optional TTL.
Method of the class: CacheInterface{}
No Hooks.
Returns
true|false. True on success and false on failure.
Usage
$CacheInterface = new CacheInterface(); $CacheInterface->setMultiple( $values, $ttl );
- $values(iterable) (required)
- 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.
Default:null
CacheInterface::setMultiple() CacheInterface::setMultiple code WP 7.0
public function setMultiple($values, $ttl = null);