icache:内存缓存中的golang类型和线程安全键值

时间:2021-04-08 16:29:26
【文件属性】:
文件名称:icache:内存缓存中的golang类型和线程安全键值
文件大小:11KB
文件格式:ZIP
更新时间:2021-04-08 16:29:26
golang cache in-memory-caching Go 缓存 icache是​​Go的缓存库,具有很高的并发访问性能。 与其他库相比,它的主要优点是它不对数据进行序列化,而仅存储值。 结果,当您从中获取值时,您将不需要解组任何东西。 这样可以节省您的时间和资源。 可以存储任何对象(在给定的持续时间内或永久存储),并且可以由多个goroutine安全地使用高速缓存。 可以存储任何对象(在给定的持续时间内或永久存储),并且可以由多个goroutine安全地使用高速缓存。 安装 go get github.com/mdaliyan/icache 用法 // make na new Pot with the default expiration time of 1 Hour // set ttl to 0 to disable expiration entirely var pot = icache . NewPot ( time . Hour
【文件预览】:
icache-master
----.gitignore(209B)
----README.md(2KB)
----tags.go(1KB)
----common.go(709B)
----shard.go(959B)
----LICENSE(1KB)
----hasher.go(968B)
----bench_test.go(1KB)
----go.mod(92B)
----pot.go(4KB)
----pot_test.go(3KB)
----example()
--------main.go(1KB)
----tags_test.go(925B)
----go.sum(867B)
----.travis.yml(560B)
----interface_test.go(399B)

网友评论