Versions Compared

Key

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

...

OP_CACHE_GET_AND_PUT = 13

Puts a value with a given key to cache, returning previous value for that key.

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

...

OP_CACHE_GET_AND_REPLACE = 14 

Puts a value with a given key to cache, returning previous value for that key, if and only if there is a value currently mapped for that key.

Request
int
Cache ID: Java-style hash code of the cache name
byteflags
BinaryObjectkey
BinaryObjectvalue
Response
BinaryObjectExisting value for the specified key


 

OP_CACHE_GET_AND_REMOVE = 15

Removes the cache entry with specified key, returning the value.

 

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

 

 

 

Response
BinaryObjectExisting value for the specified key, or null

...