Hi
i have configured ehcache 3.1 on jdk 8 with this config. i went through the documentation couple of time and still not clear on few things.
can you guys help me understand:
| <ehcache:cache alias="cache1"> |
| <ehcache:key-type>java.lang.String</ehcache:key-type> |
| <ehcache:value-type>userdefined object</ehcache:value-type> |
| <ehcache:resources> |
| <ehcache:heap unit="entries">10</ehcache:heap> |
| <ehcache:disk unit="MB" persistent="true">100</ehcache:disk> |
| </ehcache:resources> |
i was thinking if i set persistent=false, ehcache will use a tmp swap space(and thereby increase the disk write performance ?) but i see files are getting created on disk regardless of the value i set.
2. is there a way to know when a entry in cache is moved to a slower tier(for e.g. from heap to disk) ?
In the above config, the max entries on heap is 10 with a disk tier.
i have also configured cache event listeners.
but i dont see any related events getting triggered when i start inserting 11 th entry to cache ?
3.i am not using offheap tier, but i see the disk files are getting created in a folder called "off-heap" on the disk.does that mean ehcache3 is using offheap tier ?
Hi
i have configured ehcache 3.1 on jdk 8 with this config. i went through the documentation couple of time and still not clear on few things.
can you guys help me understand:
<ehcache:cache alias="cache1">
<ehcache:key-type>java.lang.String</ehcache:key-type>
<ehcache:value-type>userdefined object</ehcache:value-type>
<ehcache:resources>
<ehcache:heap unit="entries">10</ehcache:heap>
<ehcache:disk unit="MB" persistent="true">100</ehcache:disk> </ehcache:cache>
</ehcache:resources>
1. what is the difference between persistent=false vs persistent=true while configuring ehcache3 disk tier ?i was thinking if i set persistent=false, ehcache will use a tmp swap space(and thereby increase the disk write performance ?) but i see files are getting created
on disk regardless of the value i set.
2. is there a way to know when a entry in cache is moved to a slower tier(for e.g. from heap to disk) ?
In the above config, the max entries on heap is 10 with a disk tier.
i have also configured cache event listeners.
but i dont see any related events getting triggered when i start inserting 11 th entry to cache ?
3.i am not using offheap tier, but i see the disk files are getting created in a folder called "off-heap" on the disk.does that mean ehcache3 is using offheap tier ?
--
You received this message because you are subscribed to the Google Groups "ehcache-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ehcache-user...@googlegroups.com.
To post to this group, send email to ehcach...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ehcache-users/78c58ff3-40ec-4ec5-a8e6-914043988887%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.