diff --git a/Documentation/api.md b/Documentation/api.md index 0f0cbc343..32d65bc32 100644 --- a/Documentation/api.md +++ b/Documentation/api.md @@ -357,9 +357,9 @@ curl -X GET http://127.0.0.1:4001/v2/keys/dir/asdf\?consistent\=true\&wait\=true } ``` -### Atomic Compare-and-Swap (CAS) +### Atomic Compare-and-Swap -Etcd can be used as a centralized coordination service in a cluster and `CompareAndSwap` is the most basic operation used to build a distributed lock service. +Etcd can be used as a centralized coordination service in a cluster and `CompareAndSwap` (CAS) is the most basic operation used to build a distributed lock service. This command will set the value of a key only if the client-provided conditions are equal to the current conditions.