src/AbstractCache.php
protected function mapKeysToIds($keys): array
    {
        $this->assertIterable($keys, 'keys not iterable');

        $map = [];

        foreach ($keys as $key) {
            $id = $this->keyToId($key);
            $map[$id] = $key;
        }

        return $map;
    }
protected function mapKeysToIds($keys): array
    {
        $this->assertIterable($keys, 'keys not iterable');

        $map = [];

        foreach ($keys as $key) {
            $id = $this->keyToId($key);
            $map[$id] = $key;
        }

        return $map;
    }
protected function mapKeysToIds ( $ keys ) : array { $ this -> assertIterable ( $ keys , 'keys not iterable' ) ; $ map = [ ] ; foreach ( $ keys as $ key ) { $ id = $ this -> keyToId ( $ key ) ; $ map [ $ id ] = $ key ; } return $ map ; }
Create a map with keys and ids

@param iterable $keys
@return array
@throws InvalidArgumentException
Create a map with keys and ids