Documentation ¶
Overview ¶
Package memcached implements memcached adapters of the cachebox.Storage interface.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoMemcache ¶
type GoMemcache struct {
// contains filtered or unexported fields
}
GoMemcache implements the cachebox.Storage interface by wrapping the gomemcache client.
func NewGoMemcache ¶
func NewGoMemcache(client GoMemcacheClient) *GoMemcache
NewGoMemcache returns a new GoMemcache instance.
func (*GoMemcache) Delete ¶
func (g *GoMemcache) Delete(ctx context.Context, keys ...string) error
Delete performs a single or many delete calls.
type GoMemcacheClient ¶
type GoMemcacheClient interface { Get(key string) (*memcache.Item, error) GetMulti(keys []string) (map[string]*memcache.Item, error) Set(item *memcache.Item) error Delete(key string) error }
GoMemcacheClient is the interface that enables instrumentation by callers, wrapping a *memcache.Client on their side.
Click to show internal directories.
Click to hide internal directories.