remove() public method

Removes the value associated with the supplied key
public remove ( string $key ) : void
$key string
return void
Exemplo n.º 1
0
 public function testThatCacheDoesNotRemoveValuesOutsideOfNamespace()
 {
     $this->cache->save('not-in-namespace', true);
     $this->namespacedCache->remove('not-in-namespace');
     $this->assertTrue($this->cache->contains('not-in-namespace'));
     $this->assertFalse($this->namespacedCache->contains('not-in-namespace'));
 }
Exemplo n.º 2
0
 public function remove($hash)
 {
     unset(self::$secondLevelCache[$hash]);
     $this->cacheAdapter->remove($hash);
 }