xjcache

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

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

type CacheMgr

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

func NewCacheMgr

func NewCacheMgr(cacheName string, maxLifeTime int64) *CacheMgr

func (*CacheMgr) CacheGC

func (mgr *CacheMgr) CacheGC()

func (*CacheMgr) Del

func (mgr *CacheMgr) Del(cacheGroup, key string)

func (*CacheMgr) DelGroup

func (mgr *CacheMgr) DelGroup(cacheGroup string)

func (*CacheMgr) Expire added in v0.7.8

func (mgr *CacheMgr) Expire(id string, expireTime int64) error

func (*CacheMgr) Get

func (mgr *CacheMgr) Get(id string, key string) interface{}

GetSessionValue get value fo session

func (*CacheMgr) GetAll added in v0.7.9

func (mgr *CacheMgr) GetAll() []map[string]string

func (*CacheMgr) Gets added in v0.7.8

func (mgr *CacheMgr) Gets(id string) map[string]string

func (*CacheMgr) Set

func (mgr *CacheMgr) Set(id, key string, value interface{}) error

Jump to

Keyboard shortcuts

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