memory

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

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

Memory satisfies the jeff.Storage interface

func New

func New() *Memory

New initializes a new in-memory Storage for jeff

func (*Memory) Delete

func (m *Memory) Delete(_ context.Context, key []byte) error

Delete satisfies the jeff.Store.Delete method

func (*Memory) Fetch

func (m *Memory) Fetch(_ context.Context, key []byte) ([]byte, error)

Fetch satisfies the jeff.Store.Fetch method

func (*Memory) Store

func (m *Memory) Store(_ context.Context, key, value []byte, exp time.Time) error

Store satisfies the jeff.Store.Store method

Jump to

Keyboard shortcuts

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