collect

package
v0.0.0-...-f140749 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const BulkSetCache = "BULK_SET_CACHE" // 批量设置
View Source
const CacheGetName = "GET" // 单个获取

* 处理缓存

View Source
const CacheSetName = "SET" // 单个设置

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheHandler

type CacheHandler struct {
}

func (*CacheHandler) Get

func (t *CacheHandler) Get(key interface{}) (interface{}, bool)

Get 获取缓存

func (*CacheHandler) GetCacheKey

func (t *CacheHandler) GetCacheKey(room string, fields []string, params map[string]interface{}) string

func (*CacheHandler) GetTTl

func (t *CacheHandler) GetTTl(key interface{}) (time.Duration, bool)

GetTTl 设置缓存,毫秒级别

func (*CacheHandler) Set

func (t *CacheHandler) Set(key, value interface{}, second int64) bool

Set 设置缓存

func (*CacheHandler) SetMini

func (t *CacheHandler) SetMini(key, value interface{}, second int64) bool

SetMini 设置缓存,毫秒级别

func (*CacheHandler) Wait

func (t *CacheHandler) Wait()

Wait 设置缓存

Jump to

Keyboard shortcuts

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