Documentation ¶
Overview ¶
Package ppgomemcache instruments the bradfitz/gomemcache package (https://github.com/bradfitz/gomemcache).
This package instruments the gomemcache calls. Use the NewClient as the memcache.New.
mc := ppgomemcache.NewClient(addr...)
It is necessary to pass the context containing the pinpoint.Tracer to Client using Client.WithContext.
mc.WithContext(pinpoint.NewContext(context.Background(), tracer)) mc.Get("foo")
Index ¶
- type Client
- func (c *Client) Add(item *memcache.Item) error
- func (c *Client) CompareAndSwap(item *memcache.Item) error
- func (c *Client) Decrement(key string, delta uint64) (uint64, error)
- func (c *Client) Delete(key string) error
- func (c *Client) DeleteAll() error
- func (c *Client) FlushAll() error
- func (c *Client) Get(key string) (item *memcache.Item, err error)
- func (c *Client) GetMulti(keys []string) (map[string]*memcache.Item, error)
- func (c *Client) Increment(key string, delta uint64) (uint64, error)
- func (c *Client) Ping() error
- func (c *Client) Replace(item *memcache.Item) error
- func (c *Client) Set(item *memcache.Item) error
- func (c *Client) Touch(key string, seconds int32) (err error)
- func (c *Client) WithContext(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client wraps memcache.Client.
func NewClient ¶
NewClient wraps memcache.New and returns a memcache.Client wrapper ready to instrument.
func (*Client) WithContext ¶
WithContext sets the context. It is possible to trace only when the given context contains a pinpoint.Tracer.
Click to show internal directories.
Click to hide internal directories.