Current section
Files
Jump to
Current section
Files
lib/infrastructure/cache/cache_cachex.ex
defmodule MaxElixirPokeApi.Cache.Cachex do
@moduledoc false
@behaviour MaxElixirPokeApi.Cache.Behaviour
def exists?(cache, key), do: Cachex.exists?(cache, key)
def get(cache, key), do: Cachex.get(cache, key)
def put(cache, key, data) do
Cachex.put(cache, key, data)
{ :ok, data }
end
end