Current section

Files

Jump to
memcachex lib memcache application.ex
Raw

lib/memcache/application.ex

defmodule Memcache.Application do
@moduledoc false
use Application
def start(_type, _args) do
import Supervisor.Spec
children = [
worker(Memcache.Registry, [])
]
opts = [strategy: :one_for_one, name: Memcache.Supervisor]
Supervisor.start_link(children, opts)
end
end