Skip to content

Commit

Permalink
Added 'How to watch keys' under Tutorials section and updated demo pa…
Browse files Browse the repository at this point in the history
…ge accordingly (etcd-io#518)
  • Loading branch information
Somoshree authored Oct 11, 2021
1 parent b7858b0 commit 2e76aee
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 16 deletions.
16 changes: 0 additions & 16 deletions content/en/docs/v3.5/demo.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,6 @@ put user1 good
```


## Watch

`watch` to get notified of future changes:

![06_etcdctl_watch_2016050501](https://storage.googleapis.com/etcd/demo/06_etcdctl_watch_2016050501.gif)

```shell
etcdctl --endpoints=$ENDPOINTS watch stock1
etcdctl --endpoints=$ENDPOINTS put stock1 1000

etcdctl --endpoints=$ENDPOINTS watch stock --prefix
etcdctl --endpoints=$ENDPOINTS put stock1 10
etcdctl --endpoints=$ENDPOINTS put stock2 20
```


## Lease

`lease` to write with TTL:
Expand Down
19 changes: 19 additions & 0 deletions content/en/docs/v3.5/tutorials/how-to-watch-keys.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
title: How to watch keys
description: Guide to watching etcd keys
---


`watch` to get notified of future changes:

![06_etcdctl_watch_2016050501](https://storage.googleapis.com/etcd/demo/06_etcdctl_watch_2016050501.gif)

```shell
etcdctl --endpoints=$ENDPOINTS watch stock1
etcdctl --endpoints=$ENDPOINTS put stock1 1000

etcdctl --endpoints=$ENDPOINTS watch stock --prefix
etcdctl --endpoints=$ENDPOINTS put stock1 10
etcdctl --endpoints=$ENDPOINTS put stock2 20
```

0 comments on commit 2e76aee

Please sign in to comment.