ORM::_check_query_cache PHP Method

_check_query_cache() protected static method

Check the query cache for the given cache key. If a value is cached for the key, return the value. Otherwise, return false.
protected static _check_query_cache ( $cache_key, $table_name = null, $connection_name = self::DEFAULT_CONNECTION )
    protected static function _check_query_cache($cache_key, $table_name = null, $connection_name = self::DEFAULT_CONNECTION)
    {
        if (isset(self::$_config[$connection_name]['check_query_cache']) and is_callable(self::$_config[$connection_name]['check_query_cache'])) {
            return call_user_func_array(self::$_config[$connection_name]['check_query_cache'], array($cache_key, $table_name, $connection_name));
        } elseif (isset(self::$_query_cache[$connection_name][$cache_key])) {
            return self::$_query_cache[$connection_name][$cache_key];
        }
        return false;
    }
ORM