Versions in this module Expand all Collapse all v0 v0.19.0 Jun 9, 2015 Changes in this version + var ErrCASConflict = errors.New("memcache: compare-and-swap conflict") + var ErrCacheMiss = errors.New("memcache: cache miss") + var ErrNoStats = errors.New("memcache: no statistics available") + var ErrNotStored = errors.New("memcache: item not stored") + var ErrServerError = errors.New("memcache: server error") + var Gob = Codec + var JSON = Codec + func Add(c appengine.Context, item *Item) error + func AddMulti(c appengine.Context, item []*Item) error + func CompareAndSwap(c appengine.Context, item *Item) error + func CompareAndSwapMulti(c appengine.Context, item []*Item) error + func Delete(c appengine.Context, key string) error + func DeleteMulti(c appengine.Context, key []string) error + func Flush(c appengine.Context) error + func GetMulti(c appengine.Context, key []string) (map[string]*Item, error) + func Increment(c appengine.Context, key string, delta int64, initialValue uint64) (newValue uint64, err error) + func IncrementExisting(c appengine.Context, key string, delta int64) (newValue uint64, err error) + func Set(c appengine.Context, item *Item) error + func SetMulti(c appengine.Context, item []*Item) error + type Codec struct + Marshal func(interface{}) ([]byte, error) + Unmarshal func([]byte, interface{}) error + func (cd Codec) Add(c appengine.Context, item *Item) error + func (cd Codec) AddMulti(c appengine.Context, items []*Item) error + func (cd Codec) CompareAndSwap(c appengine.Context, item *Item) error + func (cd Codec) CompareAndSwapMulti(c appengine.Context, items []*Item) error + func (cd Codec) Get(c appengine.Context, key string, v interface{}) (*Item, error) + func (cd Codec) Set(c appengine.Context, item *Item) error + func (cd Codec) SetMulti(c appengine.Context, items []*Item) error + type Item struct + Expiration time.Duration + Flags uint32 + Key string + Object interface{} + Value []byte + func Get(c appengine.Context, key string) (*Item, error) + type Statistics struct + ByteHits uint64 + Bytes uint64 + Hits uint64 + Items uint64 + Misses uint64 + Oldest int64 + func Stats(c appengine.Context) (*Statistics, error)