package
0.0.0-20241106013813-926841a6acba
Repository: https://github.com/xyzj/toolbox.git
Documentation: pkg.go.dev

# Functions

NewAnyCache 初始化一个新的缓存 这个新缓存会创建一个线程检查内容是否过期,因此,当不再使用该缓存时,应该调用Close()方法关闭缓存 默认每分钟清理一次过期缓存.
NewAnyCacheWithExpireFunc 初始化一个新的缓存,在缓存过期时,会执行expireFunc函数 这个新缓存会创建一个线程检查内容是否过期,因此,当不再使用该缓存时,应该调用Close()方法关闭缓存 默认每分钟清理一次过期缓存.
No description provided by the author

# Structs

AnyCache 泛型结构缓存.
EmptyCache 一个空的cache,不实现任何功能.

# Interfaces

No description provided by the author