src/Model/CacheItemPool.php
private function prepareKey($key)
    {
        if (!preg_match('/^[a-zA-Z0-9_-]+$/', $key)) {
            throw new InvalidArgumentException($key);
        }

        return $this->keyPrefix . strtr($key, '-', '_');
    }
private function prepareKey($key)
    {
        if (!preg_match('/^[a-zA-Z0-9_-]+$/', $key)) {
            throw new InvalidArgumentException($key);
        }

        return $this->keyPrefix . strtr($key, '-', '_');
    }
private function prepareKey ( $ key ) { if ( ! preg_match ( '/^[a-zA-Z0-9_-]+$/' , $ key ) ) { throw new InvalidArgumentException ( $ key ) ; } return $ this -> keyPrefix . strtr ( $ key , '-' , '_' ) ; }
Prepares a key for cache storage

@param string $key

@return string

@throws InvalidArgumentException
Prepares a key for cache storage