We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42c7ea8 commit 398892eCopy full SHA for 398892e
components/cache/cache_pools.rst
@@ -282,7 +282,7 @@ item in the cache immediately (it returns ``true`` if the item was saved or
282
``false`` if some error occurred)::
283
284
// ...
285
- $userFriends = $cache->get('user_'.$userId.'_friends');
+ $userFriends = $cache->getItem('user_'.$userId.'_friends');
286
$userFriends->set($user->getFriends());
287
$isSaved = $cache->save($userFriends);
288
0 commit comments