【文件属性】:
文件名称:direct-cache:缓存使用 jvm 堆外内存
文件大小:53KB
文件格式:ZIP
更新时间:2021-06-15 16:09:15
Java
Direct-Cache 将缓存的值存储在不受 gc 管理的 jvm 直接内存(offheap)中,有了这个库,您可以缓存大量数据并且没有 gc 暂停问题。
Cache'key 仍在 jvm 堆中。 缓存值应该足够大(> 1k),所以直接缓存真的会有帮助
####Get direct-cache 对于 maven 用户,添加:
< dependency>
< groupId>net.dongliu groupId>
< artifactId>direct-cache artifactId>
< version>0.4.10 version>
dependency>
到你的 pom 文件。
####Usage 获取一个实例:
DirectCache cache = DirectCache . newBuilder() .
【文件预览】:
direct-cache-master
----.gitignore(21B)
----src()
--------main()
--------test()
----pom.xml(5KB)
----README.md(853B)
----LICENSE.bsd(1KB)