redis-connection icon indicating copy to clipboard operation
redis-connection copied to clipboard

ElastiCache Connection

Open Danwhy opened this issue 9 years ago • 2 comments

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 avatar Sep 09 '16 15:09 Danwhy

@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.)

nelsonic avatar Sep 09 '16 17:09 nelsonic

Same here. 😄

iagomls avatar Jan 11 '17 15:01 iagomls