inmemory

package
v0.0.0-...-db4a7b7 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemory

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

InMemory implements an in memory key value storage

implements storage.KeyValue

func NewInMemory

func NewInMemory() *InMemory

NewInMemory returns a new in memory database

func (*InMemory) Read

func (i *InMemory) Read(key []byte) (serde.Message, error)

Read implements storage.Read

func (*InMemory) Store

func (i *InMemory) Store(key []byte, value serde.Message) error

Store implements storage.KeyValue

Jump to

Keyboard shortcuts

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