View Source Avrora.Storage.Transient behaviour (avrora v0.25.0)
Storage behavior which allows keys to be removed or expired.
Link to this section Summary
Types
Naive timestamp with second precision.
Link to this section Types
@type timestamp() :: timeout()
Naive timestamp with second precision.
Link to this section Callbacks
@callback delete(key :: Avrora.Storage.schema_id()) :: {:ok, result :: boolean()} | {:error, reason :: term()}
@callback expire(key :: Avrora.Storage.schema_id(), ttl :: timeout()) :: {:ok, timestamp :: timestamp()} | {:error, reason :: term()}