nat.plugins.redis.object_store#

Classes#

RedisObjectStoreClientConfig

Object store that stores objects in a Redis database with optional TTL.

Functions#

redis_object_store_client(config, _builder)

Module Contents#

class RedisObjectStoreClientConfig#

Bases: nat.data_models.object_store.ObjectStoreBaseConfig

Object store that stores objects in a Redis database with optional TTL.

host: str = None#
db: int = None#
port: int = None#
bucket_name: str = None#
password: nat.data_models.common.OptionalSecretStr = None#
ttl: int | None = None#
classmethod validate_ttl(v: int | None) int | None#
async redis_object_store_client(
config: RedisObjectStoreClientConfig,
_builder: nat.builder.builder.Builder,
)#