onetime v0.1.2 Onetime
This is a onetime key-value store. This can be used for such as storing tokens for authentication.
Summary
Functions
Remove the old keys and values
Drops the key
Returns the value for a given key
Returns the all keys and values
Returns the value for a given key and changes the key
Checks whether the key exists or not
Returns the value for a given key and removes them
Registers the key
Registers the key with specific time
Types
result :: {:ok, any} | :error
Functions
Specs
get(any, any, number) :: result
Returns the value for a given key.
Specs
get_and_update(any, any, any, number) :: result
Returns the value for a given key and changes the key.
Specs
has?(any, any, number) :: boolean
Checks whether the key exists or not.
Specs
pop(any, any, number) :: result
Returns the value for a given key and removes them.
Specs
register(any, any, any, number) :: any
Registers the key with specific time.