weixin

package
v0.0.0-...-4215923 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gocache

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

Gocache Memcache struct contains *memcache.Client

func NewGocache

func NewGocache(server string) *Gocache

NewGocache create new cache2go

func (*Gocache) Delete

func (mem *Gocache) Delete(key string) error

Delete value in memcache.

func (*Gocache) IsExist

func (mem *Gocache) IsExist(key string) bool

IsExist check value exists in memcache.

func (*Gocache) Set

func (mem *Gocache) Set(key string, val interface{}, timeout time.Duration) (err error)

Set cached value with key and expire time.

Jump to

Keyboard shortcuts

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