I set up my Heroku instance to have Memcached, so now I have the MEMCACHE_PASSWORD, MEMCACHE_SERVERS and MEMCACHE_USERNAME env variables. How do I use them with any of the existing node.js memcached libraries? They all seem to take in just a host and port (I’m assuming the port is the default 11211?).
Thanks
As of today, there is no Node library available that supports this scenario. Heroku’s memcached instances use SASL for authentication. None of the currently available libraries support this, and there doesn’t seem to be much momentum to add support, either.
If you want to try to implement this yourself, it might be worth taking a look at sasljs, which is a Node binding around GNU SASL. Your best bet would probably be to fork node-memcached and add SASL support there.