memcachex

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemcacheX

type MemcacheX struct {
	*memcache.Client
}

func NewMemcacheX

func NewMemcacheX(conf *config.MCConf) *MemcacheX

func (*MemcacheX) GetCtx

func (mcx *MemcacheX) GetCtx(ctx context.Context, key string) (val *memcache.Item, err error)

func (*MemcacheX) GetMultiCtx

func (mcx *MemcacheX) GetMultiCtx(ctx context.Context, keys []string) (val map[string]*memcache.Item, err error)

func (*MemcacheX) SetCtx

func (mcx *MemcacheX) SetCtx(ctx context.Context, key string, val []byte, ttl int32) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL