memory

package
v0.0.0-...-5ee457c Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemoryKV

func NewMemoryKV(uri string) (kv.KV, error)

Types

type MemoryKV

type MemoryKV struct {
	// contains filtered or unexported fields
}

func (*MemoryKV) Del

func (m *MemoryKV) Del(ctx context.Context, key string) (deleted bool, err error)

func (*MemoryKV) Get

func (m *MemoryKV) Get(ctx context.Context, key string) (val []byte, err error)

func (*MemoryKV) Put

func (m *MemoryKV) Put(ctx context.Context, key string, val []byte) (err error)

Jump to

Keyboard shortcuts

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