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

Method Put

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

Put will place the new value for the key into the store. If the key does not exist, it will be created. If the key exists, the value will be updated. A key has to consist of alphanumeric characters, dashes, underscores, equal signs, and dots.

(ctx context.Context, key string, value []byte)

Source from the content-addressed store, hash-verified

106 // A key has to consist of alphanumeric characters, dashes, underscores,
107 // equal signs, and dots.
108 Put(ctx context.Context, key string, value []byte) (uint64, error)
109
110 // PutString will place the string for the key into the store. If the
111 // key does not exist, it will be created. If the key exists, the value

Callers 15

PutMethod · 0.65
newRequestMethod · 0.65
NextMsgMethod · 0.65
FlushTimeoutMethod · 0.65
TestKeyValueBasicsFunction · 0.65
TestKeyValueHistoryFunction · 0.65
TestKeyValueWatchFunction · 0.65

Implementers 1

kvsjetstream/kv.go

Calls

no outgoing calls

Tested by 15

TestKeyValueBasicsFunction · 0.52
TestKeyValueHistoryFunction · 0.52
TestKeyValueWatchFunction · 0.52
TestKeyValueKeysFunction · 0.52
TestKeyValueListKeysFunction · 0.52
TestKeyValueRePublishFunction · 0.52