Versions Compared

Key

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

...

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
byteflags
BinaryObjectkey
Response
BinaryObjectvalue

 

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
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 

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
byteflags
BinaryObjectkey
BinaryObjectvalue

 Empy response.

OP_CACHE_PUT_ALL = 20

Puts multiple key-value pairs to cache (overwriting existing associations if any).

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
intKey-value pair count
(BinaryObject + BinaryObject) * countKey-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
byteflags
BinaryObjectkey

...

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
byteflags
intkey count
BinaryObject * countkeys

...

OP_CACHE_GET_AND_PUT = 13

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey
BinaryObjectvalue
Response
BinaryObjectExisting 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
byteflags
BinaryObjectkey
BinaryObjectvalue

 

 

 

Response
BinaryObjectExisting value for the specified key, or null

...