What is the rationale for not having a 'getAll' method in LoadingCache
that allows for passing a custom loader? For example, something like:
'LoadingCache.getAll(Iterable<? extends K> keys, CacheLoader<K, V> loader)'
This would be similar to Cache.get(K key, Callable<? extends V> valueLoader),
but for the purpose of loading multiple values. For example, this would be
useful for cases when the following conditions apply:
* Context from the caller can (or needs) to be used to load the keys; and
* The cost of loading a key can be amortized over multiple keys (for example, reading from a remote host or a database).
What do you folks think?
Cheers,
-Julio