cache

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2022 License: Unlicense Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutoCreateCacheNum int

自动添加缓存队列数量

View Source
var IsAutoCreateCache bool

自动添加

Functions

func CreateCache

func CreateCache(mark string, num int)

插入缓存

func DeleteCache

func DeleteCache(mark string)

删除缓存

func GetCacheKeys

func GetCacheKeys(mark string) []interface{}

获得缓存所有keys

func GetCacheLen

func GetCacheLen(mark string) int

获得cache高度

func GetCacheValue

func GetCacheValue(mark string, key string) interface{}

获得缓存Value

func RemoveCacheValue

func RemoveCacheValue(mark string, key string)

移除value

func SetCacheValue

func SetCacheValue(mark string, key string, value interface{})

存入缓存

func Start

func Start()

func Stop

func Stop()

Types

type CacheStart

type CacheStart struct {
	IsAutoCreate       bool `autoInjectCfg:"octopus.cache.auto.create.is"`
	AutoCreateCacheNum int  `autoInjectCfg:"octopus.cache.auto.create.num"`
}

Cache启动方法

func (*CacheStart) Start

func (c *CacheStart) Start()

func (*CacheStart) Stop

func (d *CacheStart) Stop()

type CacheStop

type CacheStop struct {
}

Cache停止方法

Jump to

Keyboard shortcuts

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