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
Copy file name to clipboardExpand all lines: README.md
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,9 @@ Using any of the above cache drivers without regularly removing the expired item
20
20
21
21
The `cache:clear` command from Laravel works, but might not be the thing you want. It does not check item expiry (it removes everything), and also clears the Laravel framework cache (e.g. `/bootstrap/cache/*`), which can be especially problematic when you are using the `file` cache driver (consider a case: cache items are created by the `www-data` user but `/bootstrap/cache/*` is owned by the `ubuntu` user).
22
22
23
-
In this case, this library can help you remove only the expired items in your cache. See below sections for more details.
23
+
In this case, this tool can help you remove only the expired items in your cache. See below sections for more details.
24
24
25
-
This library is designed to be memory efficient and (for `database` caches) non-blocking, so even if there are a lot of items in the cache (e.g. you are running this for the first time to deal with an oversized cache), it can still run reasonably well.
25
+
This tool is designed to be memory efficient and (for `database` caches) non-blocking, so even if there are a lot of items in the cache (e.g. you are running this for the first time to deal with an oversized cache), it can still run reasonably well.
26
26
27
27
## Install
28
28
via Composer:
@@ -39,7 +39,7 @@ The following cache drivers from `cache.php` are currently supported:
39
39
-`database`
40
40
-`file`
41
41
42
-
Some drivers (e.g. `memcached`, `redis`) will never be supported because they have their own item eviction mechanisms; use those features instead of this library!
42
+
Some drivers (e.g. `memcached`, `redis`) will never be supported because they have their own item eviction mechanisms; use those features instead of this tool!
43
43
44
44
Custom eviction strategies can be defined for other cache drivers that does not have their own eviction mechanisms (see FAQ section).
This library checks the cache *name* (not *driver*!) inside `cache.php` to determine which cache to clear. This means, if you have the following `cache.php` ...
77
+
This tool checks the cache *name* (not *driver*!) inside `cache.php` to determine which cache to clear. This means, if you have the following `cache.php` ...
78
78
79
79
```php
80
80
[
@@ -124,8 +124,12 @@ public function boot()
124
124
}
125
125
```
126
126
127
-
### Will this library help me reclaim `database` disk spaces?
128
-
No, but if you are using this library regularly to evict expired items, then you do not need to worry about reclaiming free space. For more details, talk with a system admin/database specialist.
127
+
### Will this tool help me reclaim `database` disk spaces?
128
+
No, but if you are using this tool regularly to evict expired items, then you do not need to worry about reclaiming free space. For more details, talk with a system admin/database specialist.
129
+
130
+
### Can I run this tool during high-traffic hours?
131
+
Sure! This tool is designed with high-traffic situations in mind. It is memory-efficient and (for `database` caches) non-blocking.
0 commit comments