Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:lsmcd:commands:cas [2016/04/06 21:36]
Rob Holda
litespeed_wiki:lsmcd:commands:cas [2016/04/07 18:35]
Rob Holda
Line 1: Line 1:
 ===== cas ===== ===== cas =====
-Check-and-Set an item; store data only if no one else has updated the item since its last fetch, determined with the cas token from the [[litespeed_wiki:​lsmcd:​commands:​gets|gets]] command. LSMCD assigns a unique 64-bit ​CAS token to all items stored in it. +Check-and-Set an item; store data only if no one else has updated the item since its last fetch, determined with the cas token from the [[litespeed_wiki:​lsmcd:​commands:​gets|gets]] command. LSMCD assigns a unique 64-bit ​cas token to all items stored in it. 
  
 **syntax:** **syntax:**
Line 26: Line 26:
   * **10** → data is 10 bytes long   * **10** → data is 10 bytes long
   * **2** → unique token number obtained from [[litespeed_wiki:​lsmcd:​commands:​gets|gets]] command   * **2** → unique token number obtained from [[litespeed_wiki:​lsmcd:​commands:​gets|gets]] command
 +
 +**possible errors:**
 +  * **ERROR** - Indicates an error while saving data or the wrong syntax.
 +  * **EXISTS** - Indicates that someone has modified the CAS data since its last fetch.
 +  * **NOT_FOUND** - Indicates that the provided key does not exist in the LSMCD server.
  • Admin
  • Last modified: 2016/04/07 18:54
  • by Rob Holda