//
pkg.gl
Category
github.com/sta-golang/go-lib-utils
cache
memory
package
0.5.1
Repository:
https://github.com/sta-golang/go-lib-utils.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
6
Dependents
0
Files
386 SLOC
#
Functions
NewConfig
No description provided by the author
NewDefaultConfig
No description provided by the author
#
Constants
NodeBufSize
默认配置.
NodeValSize
默认配置.
PruningRetSize
默认配置.
#
Variables
New
New 创建缓存对象.
NewWithGCHelper
NewWithGCHelper 创建缓存对象.
#
Structs
Config
No description provided by the author
Memory
memory 内存变量缓存组件,只能设置带过期时间的内存变量, 只有过期策略,没有淘汰策略,当保存的变量个数超过最大限制, 就不在缓存新的变量,直到有变量过期删除.
#
Interfaces
GCHelper
No description provided by the author