Versions Compared

Key

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

...

Response
BinaryObjectvalue

 

OP_CACHE_GET_ALL = 12

 

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
intkey count
BinaryObject * countkeys
Response
intresult count
(BinaryObject + BinaryObject) * countResulting key-value pairs. Keys that are not present in the cache are not included.

 

OP_CACHE_PUT = 4 

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

 

OP_CACHE_CONTAINS_KEY = 10

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey
Response
boolTrue when key is present, false otherwise

 

OP_CACHE_CONTAINS_KEYS = 11

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
intkey count
BinaryObject * countkeys
Response
boolTrue when keys are present, false otherwise

Message Exchange Example

Let's see how request and response would look for a cache.get operation for integer key and value:

...