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

Method PutString

kv.go:701–703  ·  view source on GitHub ↗

PutString will place the string for the key into the store.

(key string, value string)

Source from the content-addressed store, hash-verified

699
700// PutString will place the string for the key into the store.
701func (kv *kvs) PutString(key string, value string) (revision uint64, err error) {
702 return kv.Put(key, []byte(value))
703}
704
705// Create will add the key/value pair if it does not exist.
706func (kv *kvs) Create(key string, value []byte) (revision uint64, err error) {

Callers

nothing calls this directly

Calls 1

PutMethod · 0.95

Tested by

no test coverage detected