public static function get($filename, $mins = 0)
    {
        if (!$cache = static::check($filename)) {
            return null;
        }

        $limit = time() - ($mins * 60);

        if (!$mins || $cache > $limit) {
            $filename = static::path($filename);
            $return = Json::decodeFromFile($filename);

            if ($return instanceof \ArrayObject) {
                $return = $return->asArray();
            }

            if (array_key_exists("_disk_cache", $return)) {
                $return = $return["_disk_cache"];
            }

            return $return;
        }

        return null;
    }
public static function get($filename, $mins = 0)
    {
        if (!$cache = static::check($filename)) {
            return null;
        }

        $limit = time() - ($mins * 60);

        if (!$mins || $cache > $limit) {
            $filename = static::path($filename);
            $return = Json::decodeFromFile($filename);

            if ($return instanceof \ArrayObject) {
                $return = $return->asArray();
            }

            if (array_key_exists("_disk_cache", $return)) {
                $return = $return["_disk_cache"];
            }

            return $return;
        }

        return null;
    }
public static function get ( $ filename , $ mins = 0 ) { if ( ! $ cache = static :: check ( $ filename ) ) { return null ; } $ limit = time ( ) - ( $ mins * 60 ) ; if ( ! $ mins || $ cache > $ limit ) { $ filename = static :: path ( $ filename ) ; $ return = Json :: decodeFromFile ( $ filename ) ; if ( $ return instanceof \ ArrayObject ) { $ return = $ return -> asArray ( ) ; } if ( array_key_exists ( "_disk_cache" , $ return ) ) { $ return = $ return [ "_disk_cache" ] ; } return $ return ; } return null ; }
Get the stored value of the specified key.

@param string $filename The key of the cached data
@param int $mins The number of minutes to use the cache for, if the cache is present but older than this time then return null

@return mixed
Get the stored value of the specified key .