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