Expander v0.0.1 Expander.Cache.Adapter.Local View Source

An adapter that uses Memory as a caching engine.

Example

# config/config.exs
config :sample, Sample.Expander,
  adapter: Expander.Cache.Adapter.Local

# lib/sample/expander.ex
defmodule Sample.Expander do
  use Expander.Expand, otp_app: :expander, adapter: Expander.Cache.Adapter.Redix
end

Link to this section Summary

Functions

Get URL from cache

Set URL in cache

Connects to Memory Map to store data using provided config

Link to this section Functions

Get URL from cache.

Callback implementation for Expander.Cache.Adapter.get/2.

Connects to Memory Map to store data using provided config.