Cache\Prefixed\PrefixedCachePool::deleteItem PHP Метод

deleteItem() публичный Метод

public deleteItem ( $key )
    public function deleteItem($key)
    {
        $this->prefixValue($key);
        return $this->cachePool->deleteItem($key);
    }

Usage Example

Пример #1
0
 public function testDeleteItem()
 {
     $prefix = 'ns';
     $key = 'key';
     $returnValue = true;
     $stub = $this->getHierarchyCacheStub();
     $stub->expects($this->once())->method('deleteItem')->with($prefix . $key)->willReturn($returnValue);
     $pool = new PrefixedCachePool($stub, $prefix);
     $this->assertEquals($returnValue, $pool->deleteItem($key));
 }