Merge pull request #46 from bep/document-deletefunc

Document DeleteFunc
This commit is contained in:
Karl Seguin 2020-08-13 15:47:33 +08:00 committed by GitHub
commit fdd08e71c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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.