cache

package module
v0.0.0-...-d93a3c9 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2019 License: MPL-2.0 Imports: 0 Imported by: 0

README

Cache

store and listen for key/value(s) across packages

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(key string)

func Float32

func Float32(key string) float32

func Float64

func Float64(key string) float64

func Has

func Has(key string) bool

func Int

func Int(key string) int

func Int16

func Int16(key string) int16

func Int32

func Int32(key string) int32

func Int64

func Int64(key string) int64

func Interface

func Interface(key string) interface{}

func On

func On(event Event, key string, callback func(value interface{}))

func Set

func Set(key string, value interface{})

func String

func String(key string) string

Types

type Callback

type Callback struct {
	Event
	Key  string
	Func func(value interface{})
}

type Event

type Event string
const (
	EventSet    Event = "set"
	EventDelete Event = "delete"
)

Jump to

Keyboard shortcuts

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