Apache Ignite的近缓存可以是堆外内存吗?

huangapple go评论58阅读模式
英文:

can Apache Ignite near cache be off-heap?

问题

"文档中提到:“Near caches store data in the on-heap memory。”,但我知道我们可以配置缓存为在堆内存/on-heap或堆外内存/off-heap,只是不确定是否适用于近缓存。

> CacheConfiguration.setOnheapCacheEnabled(false)"

英文:

the docs says "Near caches store data in the on-heap memory. ",
https://ignite.apache.org/docs/2.15.0/configuring-caches/near-cache
but I know we can configure a cache being on-heap/off-heap, just not sure if it applies to near cache too.

> CacheConfiguration.setOnheapCacheEnabled(false)

答案1

得分: 2

不是简短的答案。近缓存始终在堆上。

我还应该补充说明,setOnHeapCacheEnabled不配置缓存是在堆上还是在堆外。Ignite缓存始终在堆外。在堆缓存是在堆外缓存之外的。

英文:

No is the short answer. A near cache is always on-heap.

I should also add that setOnHeapCacheEnabled does not configure whether a cache is on- or off-heap. An Ignite cache is always off-heap. An on-heap cache is in addition to the off-heap cache.

huangapple
  • 本文由 发表于 2023年5月10日 22:29:44
  • 转载请务必保留本文链接:https://go.coder-hub.com/76219651.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定