Ejemplo n.º 1
0
 /**
  * @param string $name
  * @return IAttribute
  */
 public function delete($name)
 {
     if ($this->cache) {
         $this->cache->delete($name);
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  *
  * @dataProvider dataProvider
  *
  * @param string   $key
  * @param mixed    $value
  * @param int|null $ttl
  */
 public function testDelete($key, $value, $ttl)
 {
     $this->cache->set($key, $value, $ttl);
     $this->assertNull($this->cache->delete($key));
     $this->assertFalse($this->cache->has($key));
 }
Ejemplo n.º 3
0
 /**
  * @dataProvider dataProvider
  */
 public function testDelete()
 {
     $this->assertNull($this->cache->delete('key'));
 }