lib/Aegis/Cache/Filesystem.php
public static function load($id, $subId = null) : CacheEntryInterface
    {
        $storageId = $id;

        if ($subId) {
            $storageId .= '[' . $subId . ']';
        }

        if (!isset(self::$files[$storageId])) {
            $filename = static::CACHE_DIR . ($subId ? $subId . '/' : null) . urlencode($id) . '.' . static::CACHE_EXTENSION;
            self::$files[$storageId] = new File($filename);
        }

        return self::$files[$storageId];
    }
public static function load($id, $subId = null) : CacheEntryInterface
    {
        $storageId = $id;

        if ($subId) {
            $storageId .= '[' . $subId . ']';
        }

        if (!isset(self::$files[$storageId])) {
            $filename = static::CACHE_DIR . ($subId ? $subId . '/' : null) . urlencode($id) . '.' . static::CACHE_EXTENSION;
            self::$files[$storageId] = new File($filename);
        }

        return self::$files[$storageId];
    }
public static function load ( $ id , $ subId = null ) : CacheEntryInterface { $ storageId = $ id ; if ( $ subId ) { $ storageId .= '[' . $ subId . ']' ; } if ( ! isset ( self :: $ files [ $ storageId ] ) ) { $ filename = static :: CACHE_DIR . ( $ subId ? $ subId . '/' : null ) . urlencode ( $ id ) . '.' . static :: CACHE_EXTENSION ; self :: $ files [ $ storageId ] = new File ( $ filename ) ; } return self :: $ files [ $ storageId ] ; }
Gets the cache file from the filesystem

@param $id
@param null $subId
@return CacheEntryInterface
Gets the cache file from the filesystem