src/Psr16MemoryCache.php
public function getMultiple($keys, $default = null)
    {
        \WildWolf\Cache\Validator::validateIterable($keys);

        $result = [];
        foreach ($keys as $key) {
            $result[$key] = $this->get($key, $default);
        }

        return $result;
    }
public function getMultiple($keys, $default = null)
    {
        \WildWolf\Cache\Validator::validateIterable($keys);

        $result = [];
        foreach ($keys as $key) {
            $result[$key] = $this->get($key, $default);
        }

        return $result;
    }
Obtains multiple cache items by their unique keys.

@param iterable $keys    A list of keys that can obtained in a single operation.
@param mixed    $default Default value to return for keys that do not exist.

@return array|iterable   A list of key => value pairs. Cache keys that do not exist or are stale will have $default as value.

@throws \Psr\SimpleCache\InvalidArgumentException
MUST be thrown if $keys is neither an array nor a Traversable,
or if any of the $keys are not a legal value.