Document DeleteFunc

This commit is contained in:
Bjørn Erik Pedersen 2020-08-13 09:05:27 +02:00
parent f63031fa40
commit 992cd9564b
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -96,6 +96,9 @@ cache.Delete("user:4")
### DeletePrefix
`DeletePrefix` deletes all keys matching the provided prefix. Returns the number of keys removed.
### DeleteFunc
`DeleteFunc` deletes all items that the provded matches func evaluates to true. Returns the number of keys removed.
### Clear
`Clear` clears the cache. This method is **not** thread safe. It is meant to be used from tests.