Open llwt opened 6 years ago
Actually, this would be to support redisStore(url)
. Could you give more context on how this is used?
We use redis config url string rather than config objects in our configs. We are currently doing a bit of extra processing to support the config for this lib.
Right now we do this:
parseRedisUrl
is the parse function extracted from ioredis
cacheManager.caching({
...parseRedisUrl(config.redisCacheConfig.url),
store: require('cache-manager-ioredis'),
ttl: config.redisCacheConfig.ttl,
}),
If this was merged we could do the following and remove the parseRedisUrl
fn:
cacheManager.caching({
url: config.redisCacheConfig.url,
store: require('cache-manager-ioredis'),
ttl: config.redisCacheConfig.ttl,
})
@dabroek Have you had a chance to look at this by chance?
+1 for that functionality
+1 Can you review that?
Taken from this fork: https://github.com/davb/node-cache-manager-ioredis/commit/d27dd8bb7f0e8ac3326d8db062346fe0d0871e17