Category "redis"

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