Category "redis"

In hiredis async, can event_base_dispatch(base) be called from a different thread?

This query is with respect to the example provided in hiredis Can event_base_dispatch(base) be called from a different thread by creating pthread_create()? It

nodejs terminates on redis failure

I am using Node.js, Express, Redis and Socket.io. When Redis is down, Node.js will terminate. How can I prevent this, probably somewhere to code reconnection o

Getting Error: connect ECONNREFUSED 127.0.0.1:6379 in docker-compose while connecting redis

I am getting connection Error: connect ECONNREFUSED 127.0.0.1:6379 while working with docker-compose to use Redis with node js. I used the same host name and s

Why Getting NoClassDefFound error for JedisConnection when using Spring Redis

Hello when trying to use spring-redis i am getting java.lang.NoClassDefFoundError: Could not initialize class org.springframework.data.redis.connection.jedis.

How to change spring session (redis) cookie name?

We have two projects behind same domain ( zuul proxy in front of them ), both uses spring session project with sessions kept in redis. Those two sessions shou

fakeredis between multiple django views

I have a test which involve multiple Django views It seems that the fakeredis isn't shared between multiple views I tried running the following code: import f

Unable to connect AWS Redis cache in .net C# - RedisConnectionException: 'No connection is active/available to service this operation

I have created AWS ElasticCache - redisCache in console. I want to access same from .net core/framework application - But unable to connect same. Config

ARQ: Multiple JOB worker in python

what's difference on arq:job:{job_id} and arq:in_progress:{job_id}

StackExchange.Redis: Get the count of channel subscriptions (i.e. PUBSUB NUMSUB)

is there a way to get the number of channel subscriptions to a specific Redis channel through the StackExchange.Redis library? When interacting with Redis direc

Spring cache and Spring data redis

Spring cache + Spring redis: Spring provides a caching abstraction package spring-boot-starter-cache which basically provides method level annotations to cache

Python, redis: How do I set multiple key-value pairs at once

I have two lists keys= [k0,k1, ....kn] vals= [v0,v1, ....vn] I can set these key-values on redis in multiple steps doing the following: for i in range(0,len(k

Best approach to mock hiredis library in C

I am writing a project that takes advantage of the hiredis redis client library. What is the best approach to mock this library for use in writing tests? For

ASP.NET Core Web App Error: Some services are not able to be constructed

This is my first question in StackOverFlow Now, I'm using asp.net core 5.0 and I am trying to create database for Redis called Basket. But I encountered an Erro

Redis increment only if < certain number?

How do I call .incr on a key and have it increment ONLY if the resulting number is < than a certain number without having to call .get beforehand? The reaso

Jedis : Could not get a resource from the pool

Background Our application uses Jedis-2.2.1 and connects to Redis-2.6, here's how I get jedis resource : protected static JedisWrapper getRedisUserWrite(Stri

How to deploy Celery worker on DigitalOcean App Platform

I am trying to add celery + redis to my django app hosted on DO App Platform. I understand there is an issue I need to work around that is documented here: http