Method
Cache::getMultiple
The values of $keys, by key: $default for those missing or expired.
Description#
public Cache::getMultiple(
$keys,
mixed $default = null
): arrayParameters#
- $keys
- $default mixed = null
Return values#
array
Errors / Exceptions#
| Exception | When |
|---|---|
CacheKeyException | For an invalid key |
Examples#
['a' => $a, 'b' => $b] = Swerve::cache()->getMultiple(['a', 'b']);See also#
Cache::setMultipleStore several values, by key, with one$ttl, asCache::setdoes.