memstore

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: May 24, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemBlobStore

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

func NewMemStore

func NewMemStore() *MemBlobStore

NewMemStore returns a new MemBlobStore

func (*MemBlobStore) Debug

func (m *MemBlobStore) Debug(b bool)

Debug enables printing of all operations

func (*MemBlobStore) Delete

func (m *MemBlobStore) Delete(ctx context.Context, set, key string) error

func (*MemBlobStore) Dir

func (m *MemBlobStore) Dir(set string) []string

func (*MemBlobStore) Get

func (m *MemBlobStore) Get(ctx context.Context, set, key string) ([]byte, error)

func (*MemBlobStore) Set

func (m *MemBlobStore) Set(ctx context.Context, set, key string, val []byte) error

func (*MemBlobStore) Usage

func (m *MemBlobStore) Usage(set string) (blobs, size int)

Jump to

Keyboard shortcuts

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