Kujira.CacheStrategy (kujira v0.1.80)
A Cache Strategy for Memoize that doesn't cache {:error, _} patterns. Useful to protect against gRPC connection failures and temporary errors getting permanently cached
config :memoize, cache_strategy: Kujira.CacheStrategy
Summary
Functions
Callback implementation for Memoize.CacheStrategy.cache/3
.
Callback implementation for Memoize.CacheStrategy.garbage_collect/0
.
Callback implementation for Memoize.CacheStrategy.init/1
.
Callback implementation for Memoize.CacheStrategy.invalidate/0
.
Callback implementation for Memoize.CacheStrategy.invalidate/1
.
Callback implementation for Memoize.CacheStrategy.read/3
.
Callback implementation for Memoize.CacheStrategy.tab/1
.
Functions
cache(key, value, opts)
Callback implementation for Memoize.CacheStrategy.cache/3
.
garbage_collect()
Callback implementation for Memoize.CacheStrategy.garbage_collect/0
.
init(opts)
Callback implementation for Memoize.CacheStrategy.init/1
.
invalidate()
Callback implementation for Memoize.CacheStrategy.invalidate/0
.
invalidate(key)
Callback implementation for Memoize.CacheStrategy.invalidate/1
.
read(key, arg2, expired_at)
Callback implementation for Memoize.CacheStrategy.read/3
.
tab(key)
Callback implementation for Memoize.CacheStrategy.tab/1
.