Documentation ¶
Overview ¶
Package memcached implements a key-value backend.Cache client interface to a vanilla memcached implementation.
Index ¶
- type Memcached
- func (m *Memcached) Delete(ctx context.Context, key string) error
- func (m *Memcached) Get(ctx context.Context, key string, value interface{}) (bool, error)
- func (m *Memcached) Incr(ctx context.Context, key string) (int64, error)
- func (m *Memcached) Mget(ctx context.Context, keys []string, values []interface{}) error
- func (m *Memcached) Mset(ctx context.Context, keys []string, values []interface{}) error
- func (m *Memcached) Put(ctx context.Context, key string, value interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memcached ¶
A memcached client wrapper that implements the backend.Cache interface
func NewMemcachedClient ¶
Instantiates a new memcached client to a memcached instance running at `serverAddress`
Click to show internal directories.
Click to hide internal directories.