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

Method PutString

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

PutString will place the string 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 string)

Source from the content-addressed store, hash-verified

114 // A key has to consist of alphanumeric characters, dashes, underscores,
115 // equal signs, and dots.
116 PutString(ctx context.Context, key string, value string) (uint64, error)
117
118 // Create will add the key/value pair if it does not exist. If the key
119 // already exists, ErrKeyExists will be returned.

Callers 15

TestKeyValueNonDirectGetFunction · 0.65
TestObjectNamesFunction · 0.65
TestObjectMetadataFunction · 0.65
TestObjectWatchFunction · 0.65
TestObjectLinksFunction · 0.65
TestObjectListFunction · 0.65
TestObjectStoreMirrorFunction · 0.65

Implementers 1

kvsjetstream/kv.go

Calls

no outgoing calls

Tested by 15

TestKeyValueNonDirectGetFunction · 0.52
TestObjectNamesFunction · 0.52
TestObjectMetadataFunction · 0.52
TestObjectWatchFunction · 0.52
TestObjectLinksFunction · 0.52
TestObjectListFunction · 0.52
TestObjectStoreMirrorFunction · 0.52