lib/Doctrine/DBAL/Cache/QueryCacheProfile.php
public function generateCacheKeys($query, $params, $types, array $connectionParams = [])
    {
        $realCacheKey = 'query=' . $query .
            '&params=' . serialize($params) .
            '&types=' . serialize($types) .
            '&connectionParams=' . hash('sha256', serialize($connectionParams));

        // should the key be automatically generated using the inputs or is the cache key set?
        if ($this->cacheKey === null) {
            $cacheKey = sha1($realCacheKey);
        } else {
            $cacheKey = $this->cacheKey;
        }

        return [$cacheKey, $realCacheKey];
    }
public function generateCacheKeys($query, $params, $types, array $connectionParams = [])
    {
        $realCacheKey = 'query=' . $query .
            '&params=' . serialize($params) .
            '&types=' . serialize($types) .
            '&connectionParams=' . hash('sha256', serialize($connectionParams));

        // should the key be automatically generated using the inputs or is the cache key set?
        if ($this->cacheKey === null) {
            $cacheKey = sha1($realCacheKey);
        } else {
            $cacheKey = $this->cacheKey;
        }

        return [$cacheKey, $realCacheKey];
    }
public function generateCacheKeys ( $ query , $ params , $ types , array $ connectionParams = [ ] ) { $ realCacheKey = 'query=' . $ query . '&params=' . serialize ( $ params ) . '&types=' . serialize ( $ types ) . '&connectionParams=' . hash ( 'sha256' , serialize ( $ connectionParams ) ) ; // should the key be automatically generated using the inputs or is the cache key set? if ( $ this -> cacheKey === null ) { $ cacheKey = sha1 ( $ realCacheKey ) ; } else { $ cacheKey = $ this -> cacheKey ; } return [ $ cacheKey , $ realCacheKey ] ; }
Generates the real cache key from query, params, types and connection parameters.

@param string         $query
@param mixed[]        $params
@param int[]|string[] $types
@param mixed[]        $connectionParams

@return string[]
Generates the real cache key from query params types and connection parameters .