Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey

 

 

 

Response
BinaryObjectExisting value for the specified key, or null


 

OP_CACHE_PUT_IF_ABSENT = 16

 

Puts a value with a given key to cache, only if the key does not already exists.

 

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey
BinaryObjectvalue

 

 

 

Response
boolsuccess flag

 


 

OP_CACHE_GET_AND_PUT_IF_ABSENT = 16 

 

Puts a value with a given key to cache, only if the key does not already exists. 

 

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey
BinaryObjectvalue

 

 

 

 

Response
BinaryObjectPreviously contained value regardless of whether put happened or not.


 



TODO: Other operations

Message Exchange Example

...