Beetle.Backend behaviour (beetle v1.0.0) View Source
The backend Behaviour module
Link to this section Summary
Link to this section Types
Specs
bucket_info() :: {key :: bucket_key(), count :: integer(), created :: integer(), updated :: integer()}
Specs
Link to this section Callbacks
Specs
count_hit(pid :: pid(), key :: bucket_key(), now :: integer()) :: {:ok, count :: integer()} | {:error, reason :: any()}
Specs
Specs
Specs
get_bucket(pid :: pid(), key :: bucket_key()) :: {:ok, info :: bucket_info()} | {:ok, nil} | {:error, reason :: any()}