Skip to content

Commit 23b3a28

Browse files
committed
remove circular dependency
1 parent 30534ca commit 23b3a28

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

recordprocessor/src/clients.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import logging
55
from boto3 import client as boto3_client, resource as boto3_resource
66
from botocore.config import Config
7-
from redis_cacher import RedisCacher
87

98
REGION_NAME = "eu-west-2"
109

@@ -19,9 +18,6 @@
1918

2019
dynamodb_resource = boto3_resource("dynamodb", region_name=REGION_NAME)
2120

22-
# redis_client = RedisCacher(host=os.getenv("REDIS_HOST"), port=os.getenv("REDIS_PORT"))
23-
host = "immunisation-redis-cluster.0y9mwl.0001.euw2.cache.amazonaws.com"
24-
redis_client = RedisCacher(host, 6379)
2521
# Logger
2622
logging.basicConfig(level="INFO")
2723
logger = logging.getLogger()

recordprocessor/src/redis_cacher.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,8 @@ def get_cache(cls, key: str) -> dict:
2323
if value is not None:
2424
return json.loads(value)
2525
return {}
26+
27+
28+
# redis_client = RedisCacher(host=os.getenv("REDIS_HOST"), port=os.getenv("REDIS_PORT"))
29+
host = "immunisation-redis-cluster.0y9mwl.0001.euw2.cache.amazonaws.com"
30+
redis_client = RedisCacher(host, 6379)

0 commit comments

Comments
 (0)