Granada\ORM::_cache_query_result PHP Method

_cache_query_result() protected static method

Add the given value to the query cache.
protected static _cache_query_result ( string $cache_key, $value, $connection_name = self::DEFAULT_CONNECTION )
$cache_key string
    protected static function _cache_query_result($cache_key, $value, $connection_name = self::DEFAULT_CONNECTION)
    {
        if (!isset(self::$_query_cache[$connection_name])) {
            self::$_query_cache[$connection_name] = array();
        }
        self::$_query_cache[$connection_name][$cache_key] = $value;
    }
ORM