There are options to read the cache by using keys. Like this :
Collection<Integer> userIds = context.getUserDao().allUserIds();
for (Integer userId : userIds) {
User user = cache.getUserCache().get(userId);
System.out.println(user.toString());
}
With the latter it will load the expired ones to the cache and then display it.
But the requirement is to view all the content currently in the cache.