Webiny\Component\Cache\Cache::BlackHole PHP Method

BlackHole() public static method

NOTE: BlackHole driver turns off the cache.
public static BlackHole ( ) : CacheStorage
return CacheStorage
    public static function BlackHole()
    {
        return new CacheStorage(new Storage\BlackHole());
    }

Usage Example

コード例 #1
0
ファイル: ClassLoaderTest.php プロジェクト: Webiny/Framework
 public function testRegisterCacheDriver()
 {
     ClassLoader::getInstance()->registerCacheDriver(Cache::BlackHole());
     $autoloaders = spl_autoload_functions();
     $this->assertSame('getClassFromCache', $autoloaders[0][1]);
 }
All Usage Examples Of Webiny\Component\Cache\Cache::BlackHole