ram

package
v0.0.0-...-c182ff6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

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

func (*Entry) Value

func (e *Entry) Value() interface{}

type MemStore

type MemStore map[string]Entry

func (*MemStore) Exist

func (MS *MemStore) Exist(key string) bool

func (*MemStore) Get

func (MS *MemStore) Get(key string) (interface{}, error)

func (*MemStore) GetInt

func (MS *MemStore) GetInt(key string) (int, error)

func (*MemStore) GetString

func (MS *MemStore) GetString(key string) (string, error)

func (*MemStore) Len

func (MS *MemStore) Len() int

func (*MemStore) Remove

func (MS *MemStore) Remove(key string) bool

func (*MemStore) Reset

func (MS *MemStore) Reset()

func (*MemStore) Set

func (MS *MemStore) Set(key string, value interface{}, expire int) error

func (*MemStore) SetImmutable

func (MS *MemStore) SetImmutable(key string, value interface{}, expire int) error

func (*MemStore) TTL

func (MS *MemStore) TTL(key string) float64

func (*MemStore) Visit

func (MS *MemStore) Visit(visitor func(key string, value interface{}))

Jump to

Keyboard shortcuts

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