Pinq\Caching\ICacheAdapter::remove PHP Method

remove() public method

Removes the value associated with the supplied key
public remove ( string $key ) : void
$key string
return void
    public function remove($key);

Usage Example

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'));
 }
All Usage Examples Of Pinq\Caching\ICacheAdapter::remove