Skip to content

featurebyte.RedisOnlineStoreDetails

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

Description

Configuration details for Redis online store.

Parameters

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

  • credential: Optional[UsernamePasswordCredential]
    Redis user and password.

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

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

  • key_ttl_seconds: Optional[int]
    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",
...     ),
... )