View Source Hammer.Backend behaviour (hammer v6.1.0)
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()}