Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function mdelete(array $keys)
 {
     foreach ($keys as $k) {
         unset($this->hot[$k]);
     }
     return $this->cache->mdelete($keys);
 }
Пример #2
0
 public function testMultiDeleteEmpty()
 {
     $this->cache->set('test1', 'data');
     $this->cache->set('test2', 'data');
     $this->assertEquals(2, $this->cache->mdelete(['test1', 'test2', 'test3']));
     $this->assertFalse($this->cache->get('test1'));
     $this->assertFalse($this->cache->get('test2'));
 }