VatchexGreece.CachexCache (VatchexGreece v1.2.0)

Copy Markdown View Source

Cachex adapter for VatchexGreece.Cache protocol.

Uses a Cachex instance (defaults to a cache named :vatchex_greece). Configure the cache name in your application config:

config :vatchex_greece, :cache_name, :my_custom_cache

The Cachex instance must be started in your supervision tree:

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

Summary

Functions

get(cache, key)

put(cache, key, value, ttl \\ cache_ttl())