Reference
Expiring Key Value Store
Expiring_Key_Value_Store module utilities and functionality.
ExpiringKeyValueStore
Expiring key value store.
This class represents an expiring key value store.
__init__
Initialize an expiring key value store.
set
Set a value in the expiring key value store.
Arguments:
Name | Description |
---|---|
key | The key to set. |
value | The value to set. |
expiry_seconds | The expiry time in seconds. |
get
Get a value from the expiring key value store.
Arguments:
Name | Description |
---|---|
key | The key to get. |
Returns:
Name | Description |
---|---|
Any | The value. |
delete
Delete a value from the expiring key value store.
Arguments:
Name | Description |
---|---|
key | The key to delete. |