public function set($key, $value, $ttl, array $tags = null) { $this->setDueDate($key, $value, time() + $ttl, $tags); return $this; }
public function testDelete() { $this->cache->set('php', 'PHP: Hypertext Processor', 1); $this->assertEquals('PHP: Hypertext Processor', $this->cache->get('php')); $this->cache->delete('php'); $this->assertEmpty($this->cache->get('php')); }