Versions in this module Expand all Collapse all v1 v1.1.0 May 21, 2018 v1.0.0 Sep 29, 2016 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 context.Context, item *Item) error + func AddMulti(c context.Context, item []*Item) error + func CompareAndSwap(c context.Context, item *Item) error + func CompareAndSwapMulti(c context.Context, item []*Item) error + func Delete(c context.Context, key string) error + func DeleteMulti(c context.Context, key []string) error + func Flush(c context.Context) error + func GetMulti(c context.Context, key []string) (map[string]*Item, error) + func Increment(c context.Context, key string, delta int64, initialValue uint64) (newValue uint64, err error) + func IncrementExisting(c context.Context, key string, delta int64) (newValue uint64, err error) + func Set(c context.Context, item *Item) error + func SetMulti(c context.Context, item []*Item) error + type Codec struct + Marshal func(interface{}) ([]byte, error) + Unmarshal func([]byte, interface{}) error + func (cd Codec) Add(c context.Context, item *Item) error + func (cd Codec) AddMulti(c context.Context, items []*Item) error + func (cd Codec) CompareAndSwap(c context.Context, item *Item) error + func (cd Codec) CompareAndSwapMulti(c context.Context, items []*Item) error + func (cd Codec) Get(c context.Context, key string, v interface{}) (*Item, error) + func (cd Codec) Set(c context.Context, item *Item) error + func (cd Codec) SetMulti(c context.Context, items []*Item) error + type Item struct + Expiration time.Duration + Flags uint32 + Key string + Object interface{} + Value []byte + func Get(c context.Context, key string) (*Item, error) + type Statistics struct + ByteHits uint64 + Bytes uint64 + Hits uint64 + Items uint64 + Misses uint64 + Oldest int64 + func Stats(c context.Context) (*Statistics, error)