I have a downstream service which takes the list of ids and return the data for the ids. I am exploring Guava LoadingCache to cache these values. But the loader in the LoadingCache accepts only one key. Are there any ways to use the list of keys.
I did a small experimentation, it looks like this can be done by using getAll and loadAll APIs. https://github.com/google/guava/wiki/CachesExplained#from-a-cacheloader
Sample code available in https://github.com/gvnavin/CachingExperimentations