View Source Cacha.Server (Cacha v0.1.1)

Summary

Functions

Returns a specification to start this module under a supervisor.

Functions

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

del(key)

@spec del(String.t()) :: :ok

flush_all()

@spec flush_all() :: :ok | :error

get(key)

@spec get(String.t()) :: any()

incr(key)

@spec incr(String.t()) :: {:ok, integer()} | {:error, String.t()}

init()

@spec init() :: {:ok, pid()}

set(key, value)

@spec set(String.t(), any()) :: :ok | :error

start(type, args)

start_link(_)