xmemcache

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: Apache-2.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemcache

func NewMemcache(addr []string, opts ...Option) *memcache.Client

func NewXMemcache added in v0.0.3

func NewXMemcache(conf *Config) *memcache.Client

Types

type Config

type Config struct {
	Addr        []string `yaml:"addr"`
	MaxIdleConn int      `yaml:"max_idle_conn"`
	Timeout     int      `yaml:"timeout"`
}

type Option added in v0.0.3

type Option func(*memcache.Client)

func WithMaxIdleConn added in v0.0.3

func WithMaxIdleConn(cnt int) Option

func WithTimeout added in v0.0.3

func WithTimeout(d time.Duration) Option

Jump to

Keyboard shortcuts

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