title: Apache Ignite - get all from cache
body: <p>I'm trying to get all items from a Apache Ignite cache.</p>
  <p>Currently I can get an individual item using</p>
  <pre><code>ClientCache&lt;Integer, BinaryObject&gt; cache = igniteClient.cache(&quot;myCache&quot;).withKeepBinary();
  
  BinaryObject temp = cache.get(1);
  </code></pre>
  <p>To get all keys, Ive tried the following:</p>
  <pre><code>try(QueryCursor&lt;Entry&lt;Integer,BinaryObject&gt;&gt; cursor = cache.query(new ScanQuery&lt;Integer, BinaryObject&gt;(null))) {
      for (Object p : cursor)
          System.out.println(p.toString());
  }
  </code></pre>
  <p>This returns a list of <code>org.apache.ignite.internal.client.thin.ClientCacheEntry</code> which is internal, and I cannot call <code>getValue</code>.</p>
  <p>How can I get all items for this cache?</p>