May 2025
Intermediate to advanced
270 pages
6h 55m
English
So far we have focused on caching elements in a request response, or even the full response. However, this is not the only way to use caching. I recommend you design a custom-made solution for the unique architecture and use case of your application. But one common usage of caching is to apply it directly on database accesses, which, in the case of the Rails framework, means adding a caching layer on top of ActiveRecord. The Ruby ecosystem has us covered, and you have a couple of libraries that are ready and available for your benefit. This said, identity_cache,[33] built by Shopify, is currently more popular, so this will be the one you are going to use in this section.
What exactly is ...
Read now
Unlock full access