kv

package
v0.0.0-...-862781f Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KV

type KV[T any] struct {
	// contains filtered or unexported fields
}

func New

func New[T any](
	ctx context.Context,
	address string,
) (*KV[T], error)

func (*KV[T]) GetDel

func (kv *KV[T]) GetDel(
	ctx context.Context,
	key string,
) (T, error)

func (*KV[T]) Set

func (kv *KV[T]) Set(
	ctx context.Context,
	key string,
	value T,
) error

Jump to

Keyboard shortcuts

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