ScriptFUSION\Porter\Cache\MemoryCache::hasItem PHP Method

hasItem() public method

public hasItem ( $key )
    public function hasItem($key)
    {
        return isset($this[$key]);
    }

Usage Example

Example #1
0
 public function testDeleteItem()
 {
     $this->cache->deleteItem('foo');
     self::assertFalse($this->cache->hasItem('foo'));
 }