Skip to main content

Documentation Index

Fetch the complete documentation index at: https://www.getmaxim.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

View module source on GitHub

ExpiringKeyValueStore

class ExpiringKeyValueStore()
Expiring key value store. This class represents an expiring key value store.

__init__

def __init__()
Initialize an expiring key value store.

set

def set(key: str, value: Any, expiry_seconds: int)
Set a value in the expiring key value store. Arguments:
NameDescription
keyThe key to set.
valueThe value to set.
expiry_secondsThe expiry time in seconds.

get

def get(key: str)
Get a value from the expiring key value store. Arguments:
NameDescription
keyThe key to get.
Returns:
NameDescription
AnyThe value.

delete

def delete(key: str)
Delete a value from the expiring key value store. Arguments:
NameDescription
keyThe key to delete.