memstore

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Index

type Index struct {
	Key      string
	DataType int
}

type MemDatum

type MemDatum struct {
	Data       string
	Expiration int64
}

type MemStore

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

func New

func New() *MemStore

func (*MemStore) DeleteSigned

func (ms *MemStore) DeleteSigned(key string, dataType int) error

func (*MemStore) GetSigned

func (ms *MemStore) GetSigned(key string, dataType int) (bool, string, error)

func (*MemStore) UpsertSigned

func (ms *MemStore) UpsertSigned(key string, dataType int, expiration int64, data string) error

Jump to

Keyboard shortcuts

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