Add 'url' property to Redis KV config (#192)

This commit is contained in:
Mindaugas 2024-10-05 21:26:26 +03:00 committed by GitHub
parent bfb0e92034
commit 9d16129603
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -31,6 +31,10 @@ class RedisKVStoreConfig(CommonConfig):
host: str = "localhost"
port: int = 6379
@property
def url(self) -> str:
return f"redis://{self.host}:{self.port}"
class SqliteKVStoreConfig(CommonConfig):
type: Literal[KVStoreType.sqlite.value] = KVStoreType.sqlite.value