Skip to content

Commit cefce58

Browse files
committed
note on global_redis_client
1 parent 6597abb commit cefce58

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lambdas/shared/src/common/redis_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
REDIS_HOST = os.getenv("REDIS_HOST", "")
88
REDIS_PORT = os.getenv("REDIS_PORT", 6379)
99

10+
# TODO: use global_redis_client in every instance.
11+
# this will require considerable refactoring of filenameprocessor unit tests
12+
1013
redis_client = redis.StrictRedis(host=os.getenv("REDIS_HOST"), port=os.getenv("REDIS_PORT"), decode_responses=True)
1114

1215
# for lambdas which require a global redis_client

0 commit comments

Comments
 (0)