memory

package
v0.0.0-...-a4f77ab Latest Latest
Warning

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

Go to latest
Published: May 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPtrNeeded = errors.New("provided target must be a pointer to a valid variable")

ErrPtrNeeded ,,,

View Source
var SplitKeys = stores.SplitKeys

Functions

This section is empty.

Types

type Memory

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

Memory ...

func NewMemoryStore

func NewMemoryStore() *Memory

NewMemoryStore ...

func (*Memory) Keys

func (m *Memory) Keys(path ...string) []string

func (*Memory) Perfix

func (m *Memory) Perfix() string

func (*Memory) Read

func (m *Memory) Read(key string, to interface{}) error

Read 读取 Read("key",&User{})

func (*Memory) Read2

func (m *Memory) Read2(key string, value *interface{}) error

Read2 请使用Read

func (*Memory) ReadAll

func (m *Memory) ReadAll(to interface{}) (err error)

ReadAll read all var users = []*users{} m.ReadAll(&users)

func (*Memory) ReadAll2

func (m *Memory) ReadAll2(values *[]interface{}) error

func (*Memory) Write

func (m *Memory) Write(key string, value interface{}) error

Write 写入内存 Write("key",User{})

Jump to

Keyboard shortcuts

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