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 |
src/phpFastCache/Core/Pool/ExtendedCacheItemPoolTrait.php 1 location
|
@@ 438-444 (lines=7) @@
|
435 |
|
* @return bool|null |
436 |
|
* @throws \LogicException |
437 |
|
*/ |
438 |
|
public function isAttached(CacheItemInterface $item) |
439 |
|
{ |
440 |
|
if (isset($this->itemInstances[ $item->getKey() ])) { |
441 |
|
return spl_object_hash($item) === spl_object_hash($this->itemInstances[ $item->getKey() ]); |
442 |
|
} |
443 |
|
return null; |
444 |
|
} |
445 |
|
|
446 |
|
/** |
447 |
|
* Set the EventManager instance |