API / $cache.setMultiple

Persists a set of key => value pairs in the cache, with an optional TTL. the driver supports TTL then the library may set a default value for it or let the driver take care of that. MUST be thrown if $values is neither an array nor a Traversable, or if any of the $values are not a legal value.

Name Type Description
$values iterable A list of key => value pairs for a multiple-set operation.
$ttl null|int|\DateInterval Optional. The TTL value of this item. If no value is sent and
Type Description
bool True on success and false on failure.