Versions in this module Expand all Collapse all v2 v2.0.0 Jul 11, 2021 Changes in this version + type Memcache struct + func New(uri string, opts ...OptsFunc) *Memcache + func (c Memcache) Add(_ context.Context, key string, value interface{}, expire time.Duration) error + func (c Memcache) Dec(_ context.Context, key string, value uint64) (int64, error) + func (c Memcache) Delete(_ context.Context, key string) error + func (c Memcache) Get(_ context.Context, key string) cache.Item + func (c Memcache) GetMulti(_ context.Context, keys ...string) ([]cache.Item, error) + func (c Memcache) Inc(_ context.Context, key string, value uint64) (int64, error) + func (c Memcache) Replace(_ context.Context, key string, value interface{}, expire time.Duration) error + func (c Memcache) Set(_ context.Context, key string, value interface{}, expire time.Duration) error + type OptsFunc func(*memcache.Client) + func WithIdleConns(size int) OptsFunc + func WithTimeout(timeout time.Duration) OptsFunc