memorycash

package
v0.0.0-...-bd13ba8 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddObject

func AddObject(key string, val interface{}) error

func AddStringObject

func AddStringObject(key string, val string) error

func CreateMemoryCashManager

func CreateMemoryCashManager(context *appcontext.AppContext)

func DeleteObject

func DeleteObject(key string) error

func GetObject

func GetObject(key string) (interface{}, error)

func GetStringObject

func GetStringObject(key string) (string, error)

Types

type MapMemoryCash

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

func (*MapMemoryCash) AddObject

func (this *MapMemoryCash) AddObject(key string, val interface{}) error

func (*MapMemoryCash) AddStringObject

func (this *MapMemoryCash) AddStringObject(key string, val string) error

func (*MapMemoryCash) DeleteObject

func (this *MapMemoryCash) DeleteObject(key string) error

func (*MapMemoryCash) GetObject

func (this *MapMemoryCash) GetObject(key string) (interface{}, error)

func (*MapMemoryCash) GetStringObject

func (this *MapMemoryCash) GetStringObject(key string) (string, error)

func (*MapMemoryCash) InitMemoryCash

func (this *MapMemoryCash) InitMemoryCash(size int64) error

type MemoryCash

type MemoryCash interface {
	AddStringObject(key string, val string) error
	GetStringObject(key string) (string, error)
	GetObject(key string) (interface{}, error)
	AddObject(key string, val interface{}) error
	DeleteObject(key string) error
	InitMemoryCash(size int64) error
}

type MemoryCashManager

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

Jump to

Keyboard shortcuts

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