Skip to content

Commit e691d29

Browse files
committed
Fixing README
1 parent c71f590 commit e691d29

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ $fileBoundCache = new FileBoundCache($psr16Cache);
103103
$classBoundCache = new ClassBoundMemoryAdapter(new ClassBoundCache($psr16Cache));
104104
$classBoundCacheContract = new ClassBoundCacheContract(new ClassBoundCache($fileBoundCache));
105105

106-
// Put the $myDataToCache object in cache.
107106
// If the FooBar class is modified, the cache item is purged.
108107
$item = $classBoundCache->get(new ReflectionClass(FooBar::class), function() {
108+
// ...
109109
// let's return the item to be cached.
110110
// this function is called only if the item is not in cache yet.
111+
return $item;
111112
});
112113
```
113114

0 commit comments

Comments
 (0)