cacheStruct

package
v2.1.8 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheStruct

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

func New

func New(key string, c *redis.Client, expiration ...time.Duration) *CacheStruct

func (*CacheStruct) Destroy

func (p *CacheStruct) Destroy()

删除用户

func (*CacheStruct) GetStruct

func (p *CacheStruct) GetStruct(callPoint interface{}) (err error)

获取数据

func (*CacheStruct) Init added in v2.1.3

func (p *CacheStruct) Init(m interface{}) (err error)

第一次

func (*CacheStruct) IsEmpty

func (p *CacheStruct) IsEmpty() bool

判断该是否存在

func (*CacheStruct) SetStruct

func (p *CacheStruct) SetStruct(m interface{}, merge ...bool) (err error)

设置数据

Jump to

Keyboard shortcuts

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