In our application, in general case we retrieve the data from cache by passing key.
However in one scenario we want to fetch all the values from same cache regardless of key.
Since values() method is not recommended and not reliable . Is there any other way to do this?
We are using distributed mode on clustered environment.
if you're using a local cache the values should do the trick.
Otherwise I suggest looking at the DistributedExecutor or Map/Reduce as these help ypu iterate over the entries in your cache.
Retrieving data ...