valve v0.2.0 Valve.Store behaviour View Source

A behaviour that can be used to implement a backend storage for Valve.

Any implementation should implement its own sweeping / cleanup system.

Link to this section Summary

Link to this section Functions

Link to this section Callbacks

Link to this callback get(ip) View Source
get(ip :: String.t()) :: Valve.Bucket.t() | nil
Link to this callback put(ip, bucket) View Source
put(ip :: String.t(), bucket :: Valve.Bucket.t()) :: Valve.Bucket.t()
Link to this callback start_link(name) View Source
start_link(name :: atom()) :: {:ok, pid()}