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
g.krsteski edited this page Jun 3, 2014
·
5 revisions
Identity-Map
The identity map pattern is a database access design pattern used to improve performance by providing a context-specific, in-memory
cache to prevent duplicate retrieval of the same object data from the database.
$identityMap->set($id, $blogEntry);
if (true === $identityMap->hasObject($blogEntry)) {
thrownewRuntimeException('Object has an ID, cannot insert.');
}