diff --git a/frappe/utils/redis_wrapper.py b/frappe/utils/redis_wrapper.py index 6dc9421bc4..81bf195ed0 100644 --- a/frappe/utils/redis_wrapper.py +++ b/frappe/utils/redis_wrapper.py @@ -364,7 +364,7 @@ def setup_cache(): redis_class=RedisWrapper, ) - return RedisWrapper.from_url(frappe.conf.get("redis_cache")) + return RedisWrapper.from_url(frappe.conf.get("redis_cache"), protocol=3) def get_sentinel_connection( diff --git a/pyproject.toml b/pyproject.toml index 0156e4a64d..bcac7551d2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -60,7 +60,7 @@ dependencies = [ "pytz==2023.3", "rauth~=0.7.3", "redis~=5.2.0", - "hiredis~=3.0.0", + "hiredis~=3.1.0", "setproctitle~=1.3.3", "requests-oauthlib~=1.3.1", "requests~=2.32.0",