From 8f74da64386ec5033893ae8a2dd872854d15da3a Mon Sep 17 00:00:00 2001 From: Ishaan Jaff Date: Sun, 24 Nov 2024 09:38:47 -0800 Subject: [PATCH] use RedisPipelineIncrementOperation --- litellm/types/caching.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/litellm/types/caching.py b/litellm/types/caching.py index 7fca4c041..644c6e8be 100644 --- a/litellm/types/caching.py +++ b/litellm/types/caching.py @@ -1,5 +1,5 @@ from enum import Enum -from typing import Literal +from typing import Literal, TypedDict class LiteLLMCacheType(str, Enum): @@ -23,3 +23,13 @@ CachingSupportedCallTypes = Literal[ "arerank", "rerank", ] + + +class RedisPipelineIncrementOperation(TypedDict): + """ + TypeDict for 1 Redis Pipeline Increment Operation + """ + + key: str + increment_value: float + ttl_seconds: int