Webiny\Component\Cache\Cache::BlackHole PHP Méthode

BlackHole() public static méthode

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

Usage Example

Exemple #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