memcache

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

*

*Created by Xie Jian on 2019/10/25 9:28

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMemCache

func NewMemCache() cache.Cache

Types

type MemCache

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

func (*MemCache) ClearAll

func (mc *MemCache) ClearAll() error

func (*MemCache) Delete

func (mc *MemCache) Delete(key string) error

func (*MemCache) Get

func (mc *MemCache) Get(key string) interface{}

func (*MemCache) GetMulti

func (mc *MemCache) GetMulti(keys []string) []interface{}

func (*MemCache) IsExist

func (mc *MemCache) IsExist(key string) bool

func (*MemCache) Put

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

func (*MemCache) StartCache

func (mc *MemCache) StartCache(config string) error

StartCache start memcache adapter config string is like {"conn":"10.0.0.1:11211;10.0.0.2:11211;10.0.0.3:11212"}

Jump to

Keyboard shortcuts

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