I use when using scala and slick, you can create a flexible cache layer (for example, using memcached) on top of slick.
Ruby has a cool library called IdentityCache: https://github.com/Shopify/identity_cache
This allows you to simply extend the model class (dash in scala?), Where you specify to use this cache level.
Then you can say that it caches only Id, as well as cache associations, etc.
Sounds like a really cool thing, how can something like this fit into a sleek design?
source share