用于golang的缓存库。 它支持过期的Cache,LFU,LRU和ARC。-Golang开发

时间:2021-05-26 14:52:42
【文件属性】:
文件名称:用于golang的缓存库。 它支持过期的Cache,LFU,LRU和ARC。-Golang开发
文件大小:24KB
文件格式:ZIP
更新时间:2021-05-26 14:52:42
Golang Database 用于golang的GCache缓存库。 它支持过期的Cache,LFU,LRU和ARC。 功能支持过期的缓存,LFU,LRU和ARC。 Goroutine安全。 支持事件处理程序,该事件处理程序可以为golang逐出,清除和添加GCache缓存库。 它支持过期的Cache,LFU,LRU和ARC。 功能支持过期的缓存,LFU,LRU和ARC。 Goroutine安全。 支持驱逐,清除和添加条目的事件处理程序。 (可选)自动加载缓存(如果不存在)。 (可选)安装$ go get github.com/bluele/gcache示例手动设置键值对。 包main import(“ github.com/bluele/gcache”“ fmt”)func main(){gc:= gcache.New(20)。 LRU()。 乙
【文件预览】:
gcache-master
----arc_test.go(2KB)
----stats_test.go(2KB)
----lfu.go(8KB)
----singleflight_test.go(2KB)
----simple.go(6KB)
----cache_test.go(5KB)
----.github()
--------workflows()
----lru_test.go(2KB)
----LICENSE(1KB)
----singleflight.go(2KB)
----arc.go(9KB)
----helpers_test.go(3KB)
----examples()
--------autoloading()
----lru.go(6KB)
----cache.go(5KB)
----clock.go(800B)
----simple_test.go(2KB)
----README.md(5KB)
----utils.go(149B)
----lfu_test.go(4KB)
----stats.go(1003B)
----go.mod(41B)

网友评论