0
votes

I am calling Apache Ignite Cluster using REST Api :

http://restapi-ignite-grid/ignite?cmd=size&cacheName=MyCache

and I am getting back JSON :

{"successStatus":0,"affinityNodeId":null,"sessionToken":null,"error":null,"response":10}

From what I understand that means I have 10 objects in the cache "MyCache". However when I am trying to get specific object by key I am getting nothing :

http://restapi-ignite-grid/ignite?cmd=get&key=1&cacheName=MyCache

{"successStatus":0,"affinityNodeId":<someValue>,"sessionToken":null,"error":null,"response":null}

My application is not constructing name/value pairs that we put in cache, so the actual key could be different.

I have couple of questions :

  1. How do I get the list of all the keys in the particular cache? ( I can only use REST API calls )
  2. How can remove all objects from particular cache without restarting cluster?