MCPcopy
hub / github.com/nats-io/nats.go / LastRevision

Function LastRevision

jetstream/kv_options.go:98–103  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
98func 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.

Callers 2

TestKeyValueBasicsFunction · 0.92

Calls 1

deleteOptFnFuncType · 0.70

Tested by 2

TestKeyValueBasicsFunction · 0.74