package
Version:
v0.0.8
Opens a new window with list of versions in this module.
Published: Jun 20, 2023
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func New(opts ...interface{}) Cache
type Handler ¶
added in
v0.0.2
Handler 回调方法
type Item interface {
Value() interface{}
Expired() bool
}
type Option func(b *barrel)
WithTimer 自定义定时检查方法
fun 将会轮询每一个元素,返回false时将会立即触发超时回调
Source Files
¶
Click to show internal directories.
Click to hide internal directories.