kv

package
v0.1.7-cachejson-hotfix-1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateKeyValue

func CreateKeyValue(nc *nats.Conn, js nats.JetStreamContext, cfg *nats.KeyValueConfig) (nats.KeyValue, error)

CreateKeyValue will create a KeyValue store with the following configuration.

func KVDelete added in v0.1.6

func KVDelete(js nats.JetStreamContext, kv nats.KeyValue, key string) error

func KVGet added in v0.1.6

func KVGet(js nats.JetStreamContext, kv nats.KeyValue, key string) (nats.KeyValueEntry, error)

Get returns the latest value for the key.

func KVPut added in v0.1.6

func KVPut(js nats.JetStreamContext, kv nats.KeyValue, key string, value []byte) (revision uint64, err error)

func KVUpdate added in v0.1.6

func KVUpdate(js nats.JetStreamContext, kv nats.KeyValue, key string, value []byte, revision uint64) (uint64, error)

func KeyValid added in v0.1.6

func KeyValid(key string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL