|
@@ -357,7 +357,6 @@ 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 (CAS)
|
|
|
|
|
|
|
|
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` is the most basic operation used to build a distributed lock service.
|
|
@@ -585,7 +584,6 @@ curl -L http://127.0.0.1:4001/v2/keys/dir?recursive=true -XDELETE
|
|
|
}
|
|
}
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
-
|
|
|
|
|
### Creating a hidden node
|
|
### Creating a hidden node
|
|
|
|
|
|
|
|
We can create a hidden key-value pair or directory by add a `_` prefix.
|
|
We can create a hidden key-value pair or directory by add a `_` prefix.
|