setNeverExpired() публичный Метод

Set key that never expired
public setNeverExpired ( integer | string $key, mixed $value, array $tags = null ) : Cache
$key integer | string
$value mixed
$tags array
Результат Cache
Пример #1
0
 public function testDeleteNotMatchingAnyTag()
 {
     $this->cache->setNeverExpired('php', 'PHP: Hypertext Processor', array('language', 'interpretable'))->setNeverExpired('c', 'C', array('language', 'compileable'));
     $this->assertEquals(2, count($this->cache));
     $this->cache->deleteNotMatchingAnyTag(array('compileable', 'elephant'));
     $this->assertEquals(1, count($this->cache));
     $this->assertTrue($this->cache->has('c'));
 }