mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-06-29 19:34:19 +00:00
Add 'url' property to Redis KV config (#192)
This commit is contained in:
parent
bfb0e92034
commit
9d16129603
1 changed files with 4 additions and 0 deletions
|
@ -31,6 +31,10 @@ class RedisKVStoreConfig(CommonConfig):
|
||||||
host: str = "localhost"
|
host: str = "localhost"
|
||||||
port: int = 6379
|
port: int = 6379
|
||||||
|
|
||||||
|
@property
|
||||||
|
def url(self) -> str:
|
||||||
|
return f"redis://{self.host}:{self.port}"
|
||||||
|
|
||||||
|
|
||||||
class SqliteKVStoreConfig(CommonConfig):
|
class SqliteKVStoreConfig(CommonConfig):
|
||||||
type: Literal[KVStoreType.sqlite.value] = KVStoreType.sqlite.value
|
type: Literal[KVStoreType.sqlite.value] = KVStoreType.sqlite.value
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue