redis-connection
redis-connection copied to clipboard
ElastiCache Connection
I've been looking into using this module with ElastiCache and the only problem I had was with the url.
Because ElastiCache can only be used by AWS EC2 instances, the Redis node is provided with an endpoint rather than a full url, in the format clusterName.xxxxxx.cfg.usw2.cache.amazonaws.com:port which means url.parse doesn't work. Also, there's no auth data in the url, as that's all handled by AWS security groups.
@Danwhy if you have time to implement a PR please do. Otherwise can you give a bit more detail and I will help if I can! 👍
Also, given that you guys are using Hapi for SMG you can use the Hapi version: https://github.com/dwyl/hapi-redis-connection (which uses this one under-the-hood but makes it available in the context of your hapi rout handler e.g: request.redis.get() etc.)
Same here. 😄