Webiny\Component\Cache\Cache::BlackHole PHP Метод

BlackHole() публичный статический Метод

NOTE: BlackHole driver turns off the cache.
public static BlackHole ( ) : CacheStorage
Результат CacheStorage
    public static function BlackHole()
    {
        return new CacheStorage(new Storage\BlackHole());
    }

Usage Example

Пример #1
0
 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