public function getCache()
 {
     $redis = RedisCacheTest::getRedisClient();
     $this->wrappedCache = new RedisCache($redis);
     $cache = new HotCacheDecorator($this->wrappedCache, false);
     $cache->flush();
     return $cache;
 }
Esempio n. 2
0
 public function getCache()
 {
     $redis = RedisCacheTest::getRedisClient();
     $redis->flushDB();
     return new RedisCache($redis);
 }