public static function build($file, $autoCreate = true)
    {
        $storage = new CacheFile(new NativeSerializer(), $file, $autoCreate);

        $cache = new CacheEngine(new ArrayCache(), new ArraySignature(), $storage);
        $cache->initialize();

        return $cache;
    }
public static function build($file, $autoCreate = true)
    {
        $storage = new CacheFile(new NativeSerializer(), $file, $autoCreate);

        $cache = new CacheEngine(new ArrayCache(), new ArraySignature(), $storage);
        $cache->initialize();

        return $cache;
    }
public static function build ( $ file , $ autoCreate = true ) { $ storage = new CacheFile ( new NativeSerializer ( ) , $ file , $ autoCreate ) ; $ cache = new CacheEngine ( new ArrayCache ( ) , new ArraySignature ( ) , $ storage ) ; $ cache -> initialize ( ) ; return $ cache ; }
Builds cache instance

@param string $file The path to the cache file
@param boolean $autoCreate
@return \Krystal\Cache\FileEngine\CacheEngine
Builds cache instance