protected function generateKey(QueryCacheBuilder $builder, array $columns)
    {
        $sql = $builder->select($columns)->toSql();
        $whereClause = serialize($builder->getBindings());

        return sha1($sql.$whereClause);
    }
protected function generateKey(QueryCacheBuilder $builder, array $columns)
    {
        $sql = $builder->select($columns)->toSql();
        $whereClause = serialize($builder->getBindings());

        return sha1($sql.$whereClause);
    }
protected function generateKey ( QueryCacheBuilder $ builder , array $ columns ) { $ sql = $ builder -> select ( $ columns ) -> toSql ( ) ; $ whereClause = serialize ( $ builder -> getBindings ( ) ) ; return sha1 ( $ sql . $ whereClause ) ; }
Generates the cache key.

@param QueryCacheBuilder $builder
@param array             $columns

@return string
Generates the cache key .