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 |
src/phpFastCache/Core/Pool/ExtendedCacheItemPoolTrait.php 1 location
|
@@ 446-452 (lines=7) @@
|
443 |
|
* @return bool|null |
444 |
|
* @throws \LogicException |
445 |
|
*/ |
446 |
|
public function isAttached(CacheItemInterface $item) |
447 |
|
{ |
448 |
|
if (isset($this->itemInstances[ $item->getKey() ])) { |
449 |
|
return spl_object_hash($item) === spl_object_hash($this->itemInstances[ $item->getKey() ]); |
450 |
|
} |
451 |
|
return null; |
452 |
|
} |
453 |
|
|
454 |
|
/** |
455 |
|
* Set the EventManager instance |