Versions Compared

Key

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

...

Removes the cache entry with specified key, returning the value. 

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

...

OP_CACHE_PUT_IF_ABSENT = 16 

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

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 17

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

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.


 

 

OP_CACHE_REPLACE = 18

 

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
boolvalue indicating whether replace happened


 

OP_CACHE_REPLACE_IF_EQUALS = 19 

 

Puts a value with a given key to cache only if the key already exists and value equals provided value.

 

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey
BinaryObjectvalue
BinaryObjectnew value
Response
BinaryObjectboolPreviously contained value regardless of indicating whether put replace happened or not.


 



TODO: Other operations

Message Exchange Example

...