src/phpFastCache/Core/Pool/ExtendedCacheItemPoolTrait.php 1 location
|
@@ 365-371 (lines=7) @@
|
| 362 |
|
* @return bool|null |
| 363 |
|
* @throws \LogicException |
| 364 |
|
*/ |
| 365 |
|
public function isAttached(CacheItemInterface $item) |
| 366 |
|
{ |
| 367 |
|
if(isset($this->itemInstances[$item->getKey()])){ |
| 368 |
|
return spl_object_hash($item) === spl_object_hash($this->itemInstances[ $item->getKey() ]); |
| 369 |
|
} |
| 370 |
|
return null; |
| 371 |
|
} |
| 372 |
|
|
| 373 |
|
/** |
| 374 |
|
* Set the EventManager instance |
src/phpFastCache/Drivers/Memstatic/Driver.php 1 location
|
@@ 84-91 (lines=8) @@
|
| 81 |
|
* 'g' => 'THE ITEM TAGS' |
| 82 |
|
* ] |
| 83 |
|
*/ |
| 84 |
|
protected function driverRead(CacheItemInterface $item) |
| 85 |
|
{ |
| 86 |
|
$key = md5($item->getKey()); |
| 87 |
|
if(isset($this->staticStack[$key])){ |
| 88 |
|
return $this->staticStack[$key]; |
| 89 |
|
} |
| 90 |
|
return null; |
| 91 |
|
} |
| 92 |
|
|
| 93 |
|
/** |
| 94 |
|
* @param \Psr\Cache\CacheItemInterface $item |