Chapter 12. Caching

Dynamic content distinguishes the web as an interactive medium, but dynamic content can also mean huge strains on web servers. Thankfully, caching can be used to relieve this stress by eliminating redundancies among the generation of identical response content. To this end, the Merb plugin merb-cache is included in the Merb stack and has been designed to simplify the common challenges of integrating caching in an application.

12.1 Configuration

Though caching is included within the Merb stack, you need to configure it to put it to use.

12.1.1 Fundamental stores

There are two fundamental cache stores, FileStore and MemcachedStore. You can use multiples of each of these stores in your application if necessary.

FileStore ...

Get The Merb Way now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.