Avrora.Storage.Transient behaviour (avrora v0.23.0) View Source
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
Specs
timestamp() :: timeout()
Naive timestamp with second precision.
Link to this section Callbacks
Specs
delete(key :: Avrora.Storage.schema_id()) :: {:ok, result :: boolean()} | {:error, reason :: term()}
Specs
expire(key :: Avrora.Storage.schema_id(), ttl :: timeout()) :: {:ok, timestamp :: timestamp()} | {:error, reason :: term()}