You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownew \LogicException('The item already exists and cannot be overwritten because the Spl object hash mismatches ! You probably tried to re-attach a detached item which has been already retrieved from cache.');
328
+
}else{
329
+
$this->itemInstances[$item->getKey()] = $item;
330
+
}
331
+
}
332
+
333
+
334
+
/**
335
+
* @internal This method de-register an item from $this->itemInstances
299
336
* @param CacheItemInterface|string $item
300
337
* @throws \InvalidArgumentException
301
338
*/
@@ -313,4 +350,21 @@ protected function deregisterItem($item)
313
350
gc_collect_cycles();
314
351
}
315
352
}
353
+
354
+
/**
355
+
* Returns true if the item exists, is attached and the Spl Hash matches
356
+
* Returns false if the item exists, is attached and the Spl Hash mismatches
0 commit comments