删除还是一样 , 只是从 map 中删除 , 不会从chunks中删除 。
fastcache 没有过期的概念 , 所以缓存对象不会被过期剔除 。
参考文档
- http://allegro.tech/2016/03/writing-fast-cache-service-in-go.html
- https://github.com/allegro/bigcache
- https://dev.to/douglasmakey/how-bigcache-avoids-expensive-gc-cycles-and-speeds-up-concurrent-access-in-go-12bb
- https://pengrl.com/p/35302/
- https://github.com/VictoriaMetrics/fastcache
- https://www.openmymind.net/Shard-Your-Hash-table-to-reduce-write-locks/
- https://medium.com/@itsromiljain/curious-case-of-concurrenthashmap-90249632d335
- https://segmentfault.com/a/1190000012926722
- https://github.com/coocood/freecache
[译] Go开源项目BigCache如何加速并发访问以及避免高额的GC开销: https://pengrl.com/p/35302/
[2]
How BigCache avoids expensive GC cycles and speeds up concurrent access in Go: https://dev.to/douglasmakey/how-bigcache-avoids-expensive-gc-cycles-and-speeds-up-concurrent-access-in-go-12bb
[3]
Writing a very fast cache service with millions of entries in Go: https://allegro.tech/2016/03/writing-fast-cache-service-in-go.html
[4]
fastcache: https://github.com/VictoriaMetrics/fastcache
[5]
LRU groups cache: https://github.com/golang/groupcache/tree/master/lru
[6]
go-cache: https://github.com/patrickmn/go-cache
[7]
ttlcache: https://github.com/diegobernardes/ttlcache
[8]
freecache: https://github.com/coocood/freecache
[9]
concurrent-map: https://github.com/orcaman/concurrent-map
[10]
hash-bench: https://github.com/smallnest/hash-bench
[11]
offheap: https://godoc.org/github.com/glycerine/offheap
[12]
Java: ChronicleMap, Part 1: Go Off-Heap: https://dzone.com/articles/java-chroniclemap-part-1-go-off-heap
[13]
freecache: https://github.com/coocood/freecache
[14]
#9477: https://github.com/golang/go/issues/9477
[15]
fastcache: https://github.com/VictoriaMetrics/fastcache
【你应该学会的 bigcache 优化技巧】
推荐阅读
- 手把手教你分析具体链接的谷歌曝光量和点击率
- 养颜美容 几款科学饮茶方推荐
- 职场霸凌|网络诽谤、职场霸凌……最高法院法官为你答疑
- 螃蟹要怎样蒸应该怎样放在锅里 螃蟹放盘子里蒸还是直接放篦子上蒸
- 怎么对付瞧不起那些亲戚的人 怎么对付欺负你的亲戚长辈
- 美甲|美甲工具和各种必用品
- 你喂员工吃草,却指望他们有狼性?
- 想要加薪却张不开嘴?学会“福格行为模型”,加薪真没那么难
- 买芝士时,选“再制干酪”还是“奶酪”?有啥区别?学会别挑错了
- 温柔的穿搭也太招人喜欢了!学会这么搭配,优雅高级