O'Reilly logo

Heroku Cookbook by Mike Coutermarsh

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding memcached to a Rails application

Memcached is a high-performance, distributed, key-value store that allows us to quickly store and retrieve data from memory. It helps us scale our web applications by storing the result of any expensive operations in memory. A common use case is storing the result of a database query in memcached. Then, the query only has to be made once; the subsequent requests for that data are loaded from memcached. This reduces the load on our database and makes our application significantly faster. We can use memcached to cache database calls, API requests, and even the rendered views. In this recipe, you'll learn how to get a Rails application up and running with memcached on Heroku.

Note

If we are new to implementing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required