Switching my Sinatra app running in Heroku from Memcached to Memcachier
Heroku recently announced that the Memcache addon is going away and recommending users switch to using Memcachier. I run some light touch Sinatra applications at heroku, and make use of rack-cache to keep things speedy.
After reading through the Memcachier docs, everything looked pretty straight forward, except that Memcachier requires auth to connect to their memcache servers where the Memcache addon didn’t. There were no instructions for making rack-cache specifically work, but it’s quite simple.
I’m assuming you are already using the rack-cache gem and the dali gem to connect to memcache, you do not need to switch to the memcachier gem.
First, enable the Memcachier addon: