We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b9855e commit c5756d3Copy full SHA for c5756d3
redisvl/extensions/llmcache/base.py
@@ -6,7 +6,6 @@
6
7
import warnings
8
9
-from redisvl.extensions.cache.base import BaseCache
10
from redisvl.extensions.cache.llm.base import BaseLLMCache
11
12
warnings.warn(
tests/integration/test_llmcache.py
@@ -79,6 +79,12 @@ def disable_deprecation_warnings():
79
yield
80
81
82
+def test_llmcache_backwards_compat():
83
+ from redisvl.extensions.llmcache import SemanticCache as DeprecatedSemanticCache
84
+
85
+ assert DeprecatedSemanticCache == SemanticCache
86
87
88
def test_bad_ttl(cache):
89
with pytest.raises(ValueError):
90
cache.set_ttl(2.5)
0 commit comments