May 2025
Intermediate to advanced
270 pages
6h 55m
English
All the techniques you have explored so far depend on one thing: the storage in which the cached contents are saved. The impact that any caching will have on your application depends on your storage, especially at scale. Moreover, choosing the right storage for your specific use case will prove very useful as your applications grow. So, what options do you have?
Rails provides you with a few options out of the box. Changing them is as easy as changing the value of config.cache_store in your environment file. For example, typically, the default on development is memory. This is declared like this on your config environment file, for example, config/environments/development.rb:
| | config.cache_store = ... |
Read now
Unlock full access