skip to Main Content

Is redis in Python asynchronous?

I have the following Python code: import redis from app.infra.services.notifications import INotifier from app.schemas.notification import NotificationMessage from app.config import settings REDIS_CLIENT_PUBSUB = redis.StrictRedis( host=settings.REDIS_HOST, port=settings.REDIS_PORT, password=settings.REDIS_PASSWORD, ) class RedisNotifier(INotifier): def __init__(self): self.redis_client = REDIS_CLIENT_PUBSUB async def send_notification(self, room: str, notification:…

VIEW QUESTION

Unable to connect to Redis | Spring Boot

I've a redis service on upstash.io but not able to connect to it from my spring boot application This is my redis config @Configuration public class RedisConfig { @Bean public LettuceConnectionFactory redisConnectionFactory() { RedisStandaloneConfiguration redisStandaloneConfiguration = new RedisStandaloneConfiguration(); redisStandaloneConfiguration.setHostName("myhost"); redisStandaloneConfiguration.setPort(6379);…

VIEW QUESTION

Redis – Delete data from cache using key prefix in Django

cache.set("determ_" + str(id), cache_object) Am working with Django cache using Redis, these are sample of my cache keys determ_1ba243f3-2eda-4feb-bf24-1aa4c0cd2171 appr_hist_2bfd55e4-22c1-4cc3-a913-8ac2cde3801b appr_act_5a18c351-e172-4369-9a4b-118c3df5b25a but i get challenge when i want to delete cache using some part of key like determ_, appr_hist_, appr_act_…

VIEW QUESTION
Back To Top
Search