cacheStruct

package
v2.1.0 Latest Latest
Warning

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

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

Documentation

Overview

* * @Author: TheLife * @Date: 2020-2-25 9:00 下午

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) *CacheStruct

func (*CacheStruct) Destroy

func (p *CacheStruct) Destroy()

删除用户

func (*CacheStruct) GetStruct

func (p *CacheStruct) GetStruct(callPoint 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