...
Operation codes and request ids are omitted everywhere below for brevity.
OP_CACHE_GET = 1
Retrieves a value from cache by key.
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
BinaryObject | key |
Response | |
BinaryObject | value |
OP_CACHE_GET_ALL = 12
Retrieves multiple values from cache given multiple keys.
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
int | key count |
BinaryObject * count | keys |
Response | |
int | result count |
(BinaryObject + BinaryObject) * count | Resulting key-value pairs. Keys that are not present in the cache are not included. |
OP_CACHE_PUT = 4
Puts a value with a given key to cache (overwriting existing value if any).
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
BinaryObject | key |
BinaryObject | value |
Empy response.
Puts multiple key-value pairs to cache (overwriting existing associations if any).
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
int | Key-value pair count |
(BinaryObject + BinaryObject) * count | Key-value pairs |
Empy response.
OP_CACHE_CONTAINS_KEY = 10
Returns a value indicating whether given key is present in cache.
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
BinaryObject | key |
...
OP_CACHE_CONTAINS_KEYS = 11
Returns a value indicating whether all given keys are present in cache.
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
int | key count |
BinaryObject * count | keys |
...
OP_CACHE_GET_AND_PUT = 13
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
BinaryObject | key |
BinaryObject | value |
Response | |
BinaryObject | Existing value for the specified key, or null |
OP_CACHE_GET_AND_REPLACE = 14
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
BinaryObject | key |
BinaryObject | value |
Response | |
BinaryObject | Existing value for the specified key, or null |
...