LastRevision deletes if the latest revision matches the provided one. If the provided revision is not the latest, the delete will return an error.
(revision uint64)
| 96 | // LastRevision deletes if the latest revision matches the provided one. If the |
| 97 | // provided revision is not the latest, the delete will return an error. |
| 98 | func LastRevision(revision uint64) KVDeleteOpt { |
| 99 | return deleteOptFn(func(opts *deleteOpts) error { |
| 100 | opts.revision = revision |
| 101 | return nil |
| 102 | }) |
| 103 | } |
| 104 | |
| 105 | // PurgeTTL sets the TTL for the purge operation. |
| 106 | // After the TTL expires, the delete markers will be removed. |