Skip to content

featurebyte.RedisOnlineStoreDetails

class RedisOnlineStoreDetails(
*,
type: Literal["redis"]="redis",
credential: Union[UsernamePasswordCredential, NoneType]=None,
redis_type: RedisType="redis",
connection_string: StrictStr="localhost:6379",
key_ttl_seconds: Union[int, NoneType]=None
)

Description

Configuration details for Redis online store.

Parameters

  • type: Literal["redis"]
    default: "redis"

  • credential: Union[UsernamePasswordCredential, NoneType]
    Redis user and password.

  • redis_type: RedisType
    default: "redis"
    Redis type: redis or redis_cluster.

  • connection_string: StrictStr
    default: "localhost:6379"
    Connection string with format 'host:port,parameter1,parameter2' eg. redis:6379,db=0

  • key_ttl_seconds: Union[int, NoneType]
    Redis key bin ttl (in seconds) for expiring entities.

Examples

>>> details = fb.RedisOnlineStoreDetails(
...   redis_type="redis",
...   connection_string="localhost:6379",
...   key_ttl_seconds=3600,
...   credential=fb.UsernamePasswordCredential(
...     username="username",
...     password="password",
...   )
... )