memcache

package
v0.0.0-...-f26991d Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2015 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCacheMiss = memcache.ErrCacheMiss
View Source
var MemcacheConfig = &memcacheConfig{}

Functions

func IsMemcacheError

func IsMemcacheError(e error) bool

Types

type Driver

type Driver struct {
	Logger                 wcg.Logger
	EnableOperationLogging bool
	// contains filtered or unexported fields
}

func NewDriver

func NewDriver(ctx appengine.Context, logger wcg.Logger) *Driver

func (*Driver) CachedObject

func (d *Driver) CachedObject(key string, dst interface{}, generator func() (interface{}, error), force bool) error

func (*Driver) Delete

func (d *Driver) Delete(key string)

func (*Driver) DeleteMulti

func (d *Driver) DeleteMulti(keys []string) error

func (*Driver) Exists

func (d *Driver) Exists(key string) bool

func (*Driver) Get

func (d *Driver) Get(key string, dst interface{}) error

func (*Driver) GetMulti

func (d *Driver) GetMulti(keys []string, dst interface{}) error

dst must be []Kind or []*Kind

func (*Driver) Set

func (d *Driver) Set(key string, src interface{}) error

func (*Driver) SetMulti

func (d *Driver) SetMulti(keys []string, src interface{}) error

type MemcacheOperation

type MemcacheOperation struct {
	Key           string `json:"key"`
	OperationEnum int    `json:"operation_enum"`
	Hit           bool   `json:"hit"`
}

Jump to

Keyboard shortcuts

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