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

Method Keys

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

Keys will return all keys, filtering out any duplicates. For large datasets, this can be memory-heavy as all keys are loaded into memory. Use ListKeys for a streaming alternative.

(ctx context.Context, opts ...WatchOpt)

Source from the content-addressed store, hash-verified

175 // For large datasets, this can be memory-heavy as all keys are loaded
176 // into memory. Use ListKeys for a streaming alternative.
177 Keys(ctx context.Context, opts ...WatchOpt) ([]string, error)
178
179 // ListKeys will return KeyLister, allowing to retrieve all keys from
180 // the key value store in a streaming fashion (on a channel).

Callers 8

TestKeyValueKeysFunction · 0.65
TestKeyValueListKeysFunction · 0.65
TestKeyValueKeysFunction · 0.65
TestKeyValueListKeysFunction · 0.65
TestListKeysFilteredFunction · 0.65

Implementers 1

kvsjetstream/kv.go

Calls

no outgoing calls

Tested by 8

TestKeyValueKeysFunction · 0.52
TestKeyValueListKeysFunction · 0.52
TestKeyValueKeysFunction · 0.52
TestKeyValueListKeysFunction · 0.52
TestListKeysFilteredFunction · 0.52