Description
As pointed out by @thibaudgg on my last PR #810 (Adding Fragment Cache to AMS), fetch_multi would be a great optimisation to the new cache implementation (#693).
One feature of the new implementation is the individual cache strategy. It enables your application to re-use the cache in different responses.
Ex. It can re-use an object cached from a index
method response, on a show
method response. The opposite is also true.
AMS will also retrieve this cached objects individually, and that's when fetch_multi
comes in. It improves performance by retrieving multiple cache keys for a collection in a single go.
Despite of a simple improvement, it isn't easy. It will change how the Adapter
fetches cache and how it integrates with FragmentCache
I'm planning to work on this, but would like to hear some thoughts :)