File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44import logging
55from boto3 import client as boto3_client , resource as boto3_resource
66from botocore .config import Config
7- from redis_cacher import RedisCacher
87
98REGION_NAME = "eu-west-2"
109
1918
2019dynamodb_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
2622logging .basicConfig (level = "INFO" )
2723logger = logging .getLogger ()
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments