Make redis client be interchangable
See original GitHub issueHey just started using apicache, awesome so far. My problem is our production server is running on AWS with Elasticache (which as a default config is an redis-cluster) so my question is. Could it be possible to swap out the client to something like ioredis
which supports cluster.
The code currently breaking at first glance is:
return sendCachedResponse(res, JSON.parse(obj.response))
because the result from ioredis is slightly different.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Redis client handling
The commands CLIENT SETNAME and CLIENT GETNAME can be used to set and get the connection name. Starting with Redis 4.0, the client...
Read more >Is immutable.js interchangeable with redis on a server?
Redis is an in-memory database for your server that will be able to do very quick lookups and send that data to your...
Read more >redis-mock - npm
The goal of the redis-mock project is to create a feature-complete mock of node_redis, which may be used interchangeably when writing unit tests ......
Read more >faeldt/redis-mock: Node.js redis client mock - GitHub
The goal of the redis-mock project is to create a feature-complete mock of https://github.com/mranney/node_redis, so that it may be used interchangeably ...
Read more >Redis with Node.js (node_redis) | Redis Documentation Center
The following example demonstrates how to make a connection to Redis using TLS: const redis = require('redis'); ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Can’t believe I left this ticket open for so long… this has long since been addressed by @Rauttis (added ioredis support)
Example
& redis pool, how to do it?