VatchexVies.CachexCache (VatchexVies v1.0.0)

Copy Markdown View Source

Cachex adapter for VatchexVies.Cache protocol.

Configure in your application config:

config :vatchex_vies, :cache_name, :vatchex_vies
config :vatchex_vies, :cache_ttl, 86_400_000  # 24 hours

The Cachex instance must be started in your supervision tree:

children = [
  {Cachex, name: :vatchex_vies, limit: 10_000},
  ...
]

Summary

Functions

get(cache \\ :vatchex_vies, key)

put(cache \\ :vatchex_vies, key, value, opts \\ [])