When overFlowToDisk gets activated in EHCACHE?

后端 未结 2 1083
执念已碎
执念已碎 2020-12-15 10:21

I have some questions on \"overflowToDisk\" attribute of element?

1) I read at this URL that :

overflowToDisk sets whether element can overflow to disk when

2条回答
  •  抹茶落季
    2020-12-15 10:40

    As of Ehcache 2.6, the storage model is no longer an overflow one but a tiered one. In the tiered storage model, all data will always be present in the lowest tier. Items will be present in the higher tiers based on their hotness.

    Possible tiers for open source Ehcache are:

    • On-heap that is on the JVM heap
    • On-disk which is the lowest one

    By definition high tiers have lower latency but less capacity than lower tiers.

    So for an open source cache configured with overflowToDisk, all the data will always be inside the disk tier. It will store the key in memory and the data on disk.

    Answer copied from this other question.

提交回复
热议问题