storage

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitcask

type Bitcask struct{}

func (*Bitcask) Get

func (b *Bitcask) Get(key string, obj interface{}) error

Get the value of the given key.

func (*Bitcask) GetKeys

func (b *Bitcask) GetKeys() (*[]string, error)

func (*Bitcask) Remove

func (b *Bitcask) Remove(key string) error

Remove the given key

func (*Bitcask) Set

func (b *Bitcask) Set(key string, val interface{}) error

Save a key-value pair to the local storage

type Storer

type Storer interface {
	Get(key string, obj interface{}) error
	Set(key string, value interface{}) error
	Remove(key string) error
	GetKeys() (*[]string, error)
}

Jump to

Keyboard shortcuts

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