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

Method Purge

jetstream/kv.go:146–146  ·  view source on GitHub ↗

Purge will place a delete marker and remove all previous revisions. Only the latest revision will be preserved (with a delete marker). Unlike [Delete], Purge is a destructive operation and will remove all previous revisions from the underlying streams. [LastRevision] option can be specified to only

(ctx context.Context, key string, opts ...KVDeleteOpt)

Source from the content-addressed store, hash-verified

144 // [LastRevision] option can be specified to only perform purge if the
145 // latest revision the provided one.
146 Purge(ctx context.Context, key string, opts ...KVDeleteOpt) error
147
148 // Watch for any updates to keys that match the keys argument which
149 // could include wildcards. By default, the watcher will send the latest

Callers 15

TestKeyValueWatchFunction · 0.65
TestKeyValueKeysFunction · 0.65
TestKeyValueListKeysFunction · 0.65
PurgeDeletesMethod · 0.65
PutMethod · 0.65
DeleteMethod · 0.65
UpdateMetaMethod · 0.65
TestPurgeStreamFunction · 0.65
TestKeyValueWatchFunction · 0.65

Implementers 1

kvsjetstream/kv.go

Calls

no outgoing calls

Tested by 12

TestKeyValueWatchFunction · 0.52
TestKeyValueKeysFunction · 0.52
TestKeyValueListKeysFunction · 0.52
TestPurgeStreamFunction · 0.52
TestKeyValueWatchFunction · 0.52
TestKeyValueKeysFunction · 0.52
TestKeyValueListKeysFunction · 0.52