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