-
-
Notifications
You must be signed in to change notification settings - Fork 195
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redisClient option not able to store apicache data in redis database #253
Comments
Me too, redis 6 7 all not able to store apicache data i use 3 client @upstash/redis, node-redis, ioredis |
If you want to use Redis, I created a little wrapper and solved it for me const redis = require('redis');
const redisClient = redis.createClient();
redisClient.connect();
const redisWrapper = {
connected: redisClient.isOpen,
del: (keys) => { return redisClient.del(keys)},
hgetall: (key, fn) => { redisClient.hGetAll(key)
.then((resp) => {
fn(null, resp);
})
.catch((err) => {
fn(err);
});},
hset: (key, field, value) => { return redisClient.hSet(key, field, value)},
expire: (key, seconds) => { return redisClient.expire(key, seconds)},
};
module.exports = redisWrapper; |
Thanks @lvendrame, the solution worked perfectly. |
It's work for me. Thanks a lot!
|
No description provided.
The text was updated successfully, but these errors were encountered: