Versions in this module Expand all Collapse all v1 v1.0.0 Mar 24, 2023 Changes in this version + func NewTracingHook() *tracingHook + type Hook interface + After func(context.Context, error) + Before func(context.Context, string, ...string) (context.Context, error) + type MemcacheProxy struct + Opt *Option + func New(opt *Option, logger xlog.Logger, metrics metrics.Provider, ...) (*MemcacheProxy, error) + func (m *MemcacheProxy) Delete(ctx context.Context, key string) error + func (m *MemcacheProxy) Get(ctx context.Context, key string) (string, error) + func (m *MemcacheProxy) MGet(ctx context.Context, keys []string) (map[string]string, error) + func (m *MemcacheProxy) Set(ctx context.Context, key string, value string) error + func (m *MemcacheProxy) SetWithExpire(ctx context.Context, key string, value string, expire int) error + func (mp *MemcacheProxy) AddHook(h Hook) + func (mp *MemcacheProxy) Destory() error + func (mp *MemcacheProxy) Initialize() error + func (mp *MemcacheProxy) WithLogger(logger xlog.Logger) + func (mp *MemcacheProxy) WithMetrics(metrics metrics.Provider) + type Option struct + Addr []string + EnableTracer bool + MaxIdleConns int + Name string + Timeout time.Duration Other modules containing this package github.com/NetEase-Media/easy-ngo