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

Method GetRevision

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

GetRevision returns a specific revision value for the key. If the key does not exist or the provided revision does not exists, ErrKeyNotFound will be returned.

(ctx context.Context, key string, revision uint64)

Source from the content-addressed store, hash-verified

98 // does not exist or the provided revision does not exists,
99 // ErrKeyNotFound will be returned.
100 GetRevision(ctx context.Context, key string, revision uint64) (KeyValueEntry, error)
101
102 // Put will place the new value for the key into the store. If the key
103 // does not exist, it will be created. If the key exists, the value will

Callers 2

TestKeyValueNonDirectGetFunction · 0.65
TestKeyValueGetRevisionFunction · 0.65

Implementers 1

kvsjetstream/kv.go

Calls

no outgoing calls

Tested by 2

TestKeyValueNonDirectGetFunction · 0.52
TestKeyValueGetRevisionFunction · 0.52