mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
etcdctl\ctlv3: updated readme.md for timetolive example
This commit is contained in:
parent
e6a7f25065
commit
6f4e3696d2
@ -344,7 +344,10 @@ LEASE TIMETOLIVE retrieves the lease information with the given lease ID.
|
||||
# lease 2d8257079fa1bc0c granted with TTL(500s)
|
||||
|
||||
./etcdctl put foo1 bar --lease=2d8257079fa1bc0c
|
||||
# OK
|
||||
|
||||
./etcdctl put foo2 bar --lease=2d8257079fa1bc0c
|
||||
# OK
|
||||
|
||||
./etcdctl lease timetolive 2d8257079fa1bc0c
|
||||
# lease 2d8257079fa1bc0c granted with TTL(500s), remaining(481s)
|
||||
|
Loading…
x
Reference in New Issue
Block a user