forked from phoenix/litellm-mirror
use RedisPipelineIncrementOperation
This commit is contained in:
parent
a061f0e39c
commit
8f74da6438
1 changed files with 11 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Literal
|
from typing import Literal, TypedDict
|
||||||
|
|
||||||
|
|
||||||
class LiteLLMCacheType(str, Enum):
|
class LiteLLMCacheType(str, Enum):
|
||||||
|
@ -23,3 +23,13 @@ CachingSupportedCallTypes = Literal[
|
||||||
"arerank",
|
"arerank",
|
||||||
"rerank",
|
"rerank",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
class RedisPipelineIncrementOperation(TypedDict):
|
||||||
|
"""
|
||||||
|
TypeDict for 1 Redis Pipeline Increment Operation
|
||||||
|
"""
|
||||||
|
|
||||||
|
key: str
|
||||||
|
increment_value: float
|
||||||
|
ttl_seconds: int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue