feat: Use RESP3 for Redis cache connections (#28929)

RESP3 has PUSH support which is useful for implementing client side
caching. Enabling this before I work on that to test if anything breaks
with this.

No need to do this for background jobs instance just yet, infrequent
accesses and performance doesn't matter as much.
This commit is contained in:
Ankush Menat 2024-12-27 11:45:59 +05:30 committed by GitHub
parent 11a6dfb6a0
commit 6f7b4c412e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -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(

View file

@ -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",