fix cache is_redis

This commit is contained in:
jxxghp
2025-08-24 12:27:14 +08:00
parent 9b843c9ed2
commit 30446c4526

View File

@@ -1258,6 +1258,12 @@ class CacheProxy:
"""
return sum(1 for _ in self._cache_backend.items(region=self._region))
def is_redis(self) -> bool:
"""
检查当前缓存后端是否为 Redis
"""
return self._cache_backend.is_redis()
def get(self, key: str, **kwargs) -> Any:
"""
获取缓存值