src/phpFastCache/Core/Pool/ExtendedCacheItemPoolTrait.php 1 location
|
@@ 447-453 (lines=7) @@
|
444 |
|
* @return bool|null |
445 |
|
* @throws \LogicException |
446 |
|
*/ |
447 |
|
public function isAttached(CacheItemInterface $item) |
448 |
|
{ |
449 |
|
if (isset($this->itemInstances[ $item->getKey() ])) { |
450 |
|
return spl_object_hash($item) === spl_object_hash($this->itemInstances[ $item->getKey() ]); |
451 |
|
} |
452 |
|
return null; |
453 |
|
} |
454 |
|
|
455 |
|
/** |
456 |
|
* Set the EventManager instance |
src/phpFastCache/Drivers/Memstatic/Driver.php 1 location
|
@@ 85-92 (lines=8) @@
|
82 |
|
* 'g' => 'THE ITEM TAGS' |
83 |
|
* ] |
84 |
|
*/ |
85 |
|
protected function driverRead(CacheItemInterface $item) |
86 |
|
{ |
87 |
|
$key = md5($item->getKey()); |
88 |
|
if(isset($this->staticStack[$key])){ |
89 |
|
return $this->staticStack[$key]; |
90 |
|
} |
91 |
|
return null; |
92 |
|
} |
93 |
|
|
94 |
|
/** |
95 |
|
* @param \Psr\Cache\CacheItemInterface $item |