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 c71f590 commit e691d29Copy full SHA for e691d29
README.md
@@ -103,11 +103,12 @@ $fileBoundCache = new FileBoundCache($psr16Cache);
103
$classBoundCache = new ClassBoundMemoryAdapter(new ClassBoundCache($psr16Cache));
104
$classBoundCacheContract = new ClassBoundCacheContract(new ClassBoundCache($fileBoundCache));
105
106
-// Put the $myDataToCache object in cache.
107
// If the FooBar class is modified, the cache item is purged.
108
$item = $classBoundCache->get(new ReflectionClass(FooBar::class), function() {
+ // ...
109
// let's return the item to be cached.
110
// this function is called only if the item is not in cache yet.
111
+ return $item;
112
});
113
```
114
0 commit comments