Skip to content

Commit

Permalink
Update fakeredis to latest (#4512)
Browse files Browse the repository at this point in the history
* Upgrade fakeredis to v2.26.1

* Upgrade fakeredis to v2.26.1

* Update python version to 3.11

* fix typing

* update github workflows to use ubuntu-latest

* fix

* restore py3.8
  • Loading branch information
cunla authored Nov 1, 2024
1 parent 9a6b2f6 commit 284c823
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion framework/rediscache.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
import os
import pickle
import logging
from typing import Optional

import settings

import redis
Expand All @@ -26,7 +28,7 @@
from redis.retry import Retry
from redis.backoff import ExponentialBackoff

redis_client = None
redis_client: Optional[redis.Redis] = None

if settings.UNIT_TEST_MODE:
redis_client = fakeredis.FakeStrictRedis()
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ google-cloud-secret-manager==2.16.2
google-auth==1.31.0
requests==2.32.0
redis==4.4.4
fakeredis==1.10.1
fakeredis==2.26.1
Flask==2.3.2
flask-cors==5.0.0
funcsigs==1.0.2
Expand Down

0 comments on commit 284c823

Please sign in to comment.