A simple, naive, but understood cache.
Emulates the most basic REDIS APIs and helps me as I learn Elixir.
The package can be installed by adding cacha
to your list of dependencies in mix.exs
:
def deps do
[
{:cacha, "~> 0.1.0"}
]
end
And then add it to your supervision tree with:
defmodule YourApp.Application do
use Application
@impl true
def start(_type, _args) do
children = [
...,
Cacha.Server,
...
]
opts = [strategy: :one_for_one, name: YourApp.Supervisor]
Supervisor.start_link(children, opts)
end
- Key list command.
- Expiries / TTL support.
- Dump mode.
- AOF flush mode.