memcache

package
v0.0.0-...-5745f2c Latest Latest
Warning

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

Go to latest
Published: May 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCache

func NewCache() factory.Cache

func WithMemcacheOption

func WithMemcacheOption(op Options) factory.CacheOption

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func (*Cache) ClearAll

func (c *Cache) ClearAll() error

func (*Cache) Close

func (c *Cache) Close() error

func (*Cache) Decr

func (c *Cache) Decr(key string) error

func (*Cache) Delete

func (c *Cache) Delete(key string) error

func (*Cache) Get

func (c *Cache) Get(key string) ([]byte, error)

func (*Cache) Incr

func (c *Cache) Incr(key string) error

func (*Cache) IsExist

func (c *Cache) IsExist(key string) bool

func (*Cache) Put

func (c *Cache) Put(key string, val interface{}, timeout time.Duration) error

func (*Cache) StartAndConfigure

func (c *Cache) StartAndConfigure(ops ...factory.CacheOption) error

type Options

type Options struct {
	Addr []string `mapstructure:"addr"`
}

Jump to

Keyboard shortcuts

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