store

package
v0.0.0-...-f41bb3c Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2016 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(id string, clear bool) string

func InitStore

func InitStore(collectNum int, expiration time.Duration)

func Remove

func Remove(id string)

func Save

func Save(id string, str string)

Types

type Store

type Store interface {
	Set(id string, digits []byte)
	Get(id string, clear bool) (digits []byte)
	Remove(id string)
}

func GetStore

func GetStore() Store

func NewMemoryStore

func NewMemoryStore(collectNum int, expiration time.Duration) Store

Jump to

Keyboard shortcuts

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