Packages

A simple cache with ttl based on ets and timers. Tested with property model testing. Thundering herd fix, as well

Current section

Files

Jump to
simpler_cache lib simple_cache application.ex
Raw

lib/simple_cache/application.ex

defmodule SimplerCache.Application do
@moduledoc false
use Application
def start(_type, _args) do
children = [
{SimplerCache.TableWorker, []}
]
opts = [strategy: :one_for_one, name: SimplerCache.Supervisor]
Supervisor.start_link(children, opts)
end
end