...
Removes the cache entry with specified key, returning the value.
Request | |
int | Cache ID: Java-style hash code of the cache name |
byte | flags |
BinaryObject | key |
...
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 |
byte | flags |
BinaryObject | key |
BinaryObject | value |
...
Response | |
bool | success 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 |
byte | flags |
BinaryObject | key |
BinaryObject | value |
Response | |
BinaryObject | Previously 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 |
byte | flags |
BinaryObject | key |
BinaryObject | value |
Response | |
bool | value 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 |
byte | flags |
BinaryObject | key |
BinaryObject | value |
BinaryObject | new value |
Response | |
BinaryObjectbool | Previously contained value regardless of indicating whether put replace happened or not. |
TODO: Other operations
...