Merge pull request #46 from bep/document-deletefunc
Document DeleteFunc
This commit is contained in:
commit
fdd08e71c4
1 changed files with 3 additions and 0 deletions
|
@ -96,6 +96,9 @@ cache.Delete("user:4")
|
||||||
### DeletePrefix
|
### DeletePrefix
|
||||||
`DeletePrefix` deletes all keys matching the provided prefix. Returns the number of keys removed.
|
`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
|
||||||
`Clear` clears the cache. This method is **not** thread safe. It is meant to be used from tests.
|
`Clear` clears the cache. This method is **not** thread safe. It is meant to be used from tests.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue