Skip to content
This repository was archived by the owner on Sep 6, 2019. It is now read-only.

Commit e5e0fd0

Browse files
committed
updated readme
1 parent d367153 commit e5e0fd0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,10 @@ CachedModel::where('some_field', 1)->find(1);
8989
// not cached
9090
CachedModel::with('relation')->find(1);
9191
```
92+
93+
The cache can be manually cleared by calling the new `refresh` method on the cached model which can be found in the `Cacheable` trait.
94+
95+
```php
96+
// manually clear cache
97+
CachedModel::find(1)->refresh();
98+
```

0 commit comments

Comments
 (0)