Cache\Adapter\Common\CacheItem::getKey PHP Method

getKey() public method

public getKey ( )
    public function getKey()
    {
        return $this->key;
    }

Usage Example

 public function testGetKey()
 {
     $item = new CacheItem('test_key');
     $this->assertEquals('test_key', $item->getKey());
 }