git » nmdb » commit 84448a9

Fix CAS documentation in the design document.

author Alberto Bertogli
2007-08-28 06:30:59 UTC
committer Alberto Bertogli
2007-08-28 06:30:59 UTC
parent 5b58d242a9f123b1865f1b79f146555f8a68a616

Fix CAS documentation in the design document.

Signed-off-by: Alberto Bertogli <albertito@gmail.com>

doc/design.rst +5 -2

diff --git a/doc/design.rst b/doc/design.rst
index 52658c6..ddb60b9 100644
--- a/doc/design.rst
+++ b/doc/design.rst
@@ -41,6 +41,10 @@ get *key*
   Retrieves the value for the given key. If the key is in the cache, it
   returns immediately. If not, it performs a query in the database.
 
+cas *key* *oldvalue* *newvalue*
+  Do a compare-and-swap, using *oldvalue* to compare with the value stored in
+  the database, and replacing it with *newvalue* if they match.
+
 incr *key* *increment*
   Increments the value associated to the given key by the given increment.
 
@@ -69,8 +73,7 @@ cache_del *key*
   Like *del*, but only affects the cache and not the database.
 
 cache_cas *key* *oldvalue* *newvalue*
-  Do a compare-and-swap, using *oldvalue* to compare with the value stored in
-  the database, and replacing it with *newvalue* if they match.
+  Like *cas*, but only affects the cache and not the database.
 
 cache_incr *key* *increment*
   Like *incr*, but only affects the cache and not the database.