skip to Main Content

Redis – JedisPool vs JedisPooled

Looking at the Jedis Getting Started, I understand it's better to use connection pools to be threadsafe. To do so, I would need a JedisPool and a try-with-resources statement like so: try (Jedis jedis = pool.getResource()) { jedis.set("hello", "world"); }…

VIEW QUESTION

Channels-redis wont install using pip

im trying to install channels-redis using pip install -U pip channels-redis but it cause the following error: Error: Using legacy 'setup.py install' for hiredis, since package 'wheel' is not installed. Installing collected packages: hiredis, async-timeout, aioredis, channels-redis Running setup.py install…

VIEW QUESTION

In Nest js, I added Redis as a cache manager. And can't find any added data in Redis after calling the set function. So, am I missing something?

Node version: v14.15.4 Nest-js version: 9.0.0 app.module.ts Here is the code. In the app module, I am registering Redis as a cache manager. @Module({ imports: [ CacheModule.register({ isGlobal: true, store: redisStore, url: process.env.REDIS_URL, }) ], controllers: [AppController], providers: [AppService], })…

VIEW QUESTION
Back To Top
Search