Add delete_all/2
and count_all/2
functions to the Cache API
#100
Labels
delete_all/2
and count_all/2
functions to the Cache API
#100
Add
delete_all/2
andcount_all/2
as part of the queryable behaviour.delete_all/2
: Deletes all entries matching the given query. Ifquery
isnil
, then all entries in the cache are deleted.count_all/2
: Counts all entries in cache matching the given query. If the query isnil
(the default), then the total number of cached entries is returned.These new callbacks should replace
size/0
andflush/0
. For example,Cache.size()
==Cache.count_all()
andCache.flush()
==Cache.deletee_all()
.The text was updated successfully, but these errors were encountered: