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

Link to this function

cache(key, value, opts)

Callback implementation for Memoize.CacheStrategy.cache/3.

Link to this function

garbage_collect()

Callback implementation for Memoize.CacheStrategy.garbage_collect/0.

Callback implementation for Memoize.CacheStrategy.init/1.

Callback implementation for Memoize.CacheStrategy.invalidate/0.

Link to this function

invalidate(key)

Callback implementation for Memoize.CacheStrategy.invalidate/1.

Link to this function

read(key, arg2, expired_at)

Callback implementation for Memoize.CacheStrategy.read/3.

Callback implementation for Memoize.CacheStrategy.tab/1.