etcdctl\ctlv3: updated readme.md for timetolive example

This commit is contained in:
sharat 2016-09-13 20:33:51 +05:30
parent e6a7f25065
commit 6f4e3696d2

View File

@ -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)