BlackHole() 공개 정적인 메소드

NOTE: BlackHole driver turns off the cache.
public static BlackHole ( ) : CacheStorage
리턴 CacheStorage
예제 #1
0
 public function testRegisterCacheDriver()
 {
     ClassLoader::getInstance()->registerCacheDriver(Cache::BlackHole());
     $autoloaders = spl_autoload_functions();
     $this->assertSame('getClassFromCache', $autoloaders[0][1]);
 }
예제 #2
0
 public function testSetGetCacheAsCacheObject()
 {
     $nullCache = Cache::BlackHole();
     Router::getInstance()->setCache($nullCache);
     $this->assertInstanceOf('\\Webiny\\Component\\Cache\\CacheStorage', Router::getInstance()->getCache());
 }