You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* implement lease related func and test files
* add lease documentation
* fix naming typo of txn test file
* remove extra layer and fix formatting
* multiversion adaptation
* improved test file
* same with #12
* add demo in doc
-`ID`: the requested ID for the lease. If ID is set to 0, the lessor chooses an ID.
276
+
277
+
Creates a lease which expires if the server does not receive a keepalive within a given time to live period. All keys attached to the lease will be expired and deleted if the lease expires. Each expired key generates a delete event in the event history.
278
+
279
+
```lua
280
+
-- grant a lease with 5 second TTL
281
+
localres, err=cli:grant(5)
282
+
283
+
-- attach key to lease, whose ID would be contained in res
0 commit comments