Versions Compared

Key

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

...

OP_CACHE_REMOVE_IF_EQUALS = 25 

Removes an entry with a given key if provided value is equal to actual value, notifying listeners and cache writers. 

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

 

 

 

Response
boolvalue indicating whether remove happened

 

 

 

OP_CACHE_GET_SIZE = 26  

Gets the cache size.  

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
intPeek mode count. Can be 0, which means ALL.
byte * countPeek modes. ALL = 0, NEAR = 1, PRIMARY = 2, BACKUP = 3
Response
longCache size


 

 

OP_CACHE_REMOVE_KEYS = 27

 

Removes entries with given keys, notifying listeners and cache writers. 

 

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
intkey count
BinaryObject * countkeys

Empty response.

 

 


OP_CACHE_REMOVE_ALL = 28 

Removes all entries from cache, notifying listeners and cache writers. 

ResponseRequest
long
int
Cache sizeID: Java-style hash code of the cache name
byteflags

Empty response.


 




TODO: Other operations

Message Exchange Example

...