memory

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2019 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 Memory

type Memory struct {
}

func New

func New() *Memory

func (*Memory) Close

func (s *Memory) Close()

func (*Memory) Space

func (s *Memory) Space(name string) *MemorySpace

type MemorySpace

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

func (*MemorySpace) Delete

func (m *MemorySpace) Delete(name string)

func (*MemorySpace) Get

func (m *MemorySpace) Get(name string) (interface{}, bool)

Get an item from the cache. Returns the item or nil, and a bool indicating whether the key was found.

func (*MemorySpace) IncrementInt

func (m *MemorySpace) IncrementInt(k string, n int)

func (*MemorySpace) Items

func (m *MemorySpace) Items() map[string]interface{}

func (*MemorySpace) Set

func (m *MemorySpace) Set(name string, value interface{})

Set add an item to the cache, replacing any existing item with the same name

Jump to

Keyboard shortcuts

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