Add data to Infinispan via a RESTful interface
Putting data in  HTTP PUT and POST methods are used to place data in the cache - the data being the body of the request (the data can be anything you like). It is important that a Content-Type header is set. PUT /{cacheName}/{cacheKey} A PUT request of the above URL form will place the payload (body) in the given cache, with the given key (the named cache must exist on the server). For example http://someserver/hr/payRoll/3 (in which case "hr" is the cache name, and "payRoll/3" is the key). Any existing data will be replaced, and Time-To-Live and Last-Modified values etc will updated (if applicable). POST /{cacheName}/{cacheKey} Exactly the same as PUT, only if a value in a cache/key already exists, it will return a Http CONFLICT status (and the content will not be updated). Headers: Content-Type: MANDATORY (use media/mime-typesfor example "application/json"). (note that if you set the Content-Type to application/x-java-serialized-object - then it will be stored as a Java object - that is the only special case). timeToLiveSeconds: OPTIONAL number (the number of seconds before this entry will automatically be deleted) maxIdleTimeSeconds: OPTIONAL number (the number of seconds after last usage of this entry when it will automatically be deleted) performAsync: OPTIONAL true/false (if true, this will return immediately, and then replicate data to the cluster on its own. Can help with bulk data inserts/large clusters.)