2

Please let me know if cache eviction can be done at particular time of the day instead of TTL. I am using spring framework so if any API provides this feature then I can use this API by plugging into Spring. I did run through search mechanism if similar question has been asked but failed to find any prior question.

If similar question has been asked please let me know the link.

Thanks, Amitabh

2 Answers2

1

According to GemFire docs:

You configure for eviction based on entry count, percentage of available heap, and absolute memory usage. You also configure what to do when you need to evict: destroy entries or overflow them to disk. See Persistence and Overflow.

http://gemfire.docs.pivotal.io/latest/userguide/index.html#developing/eviction/configuring_data_eviction.html

But you may be able to get something closer to what you need through Custom expiration. Please check the following link:

http://gemfire.docs.pivotal.io/latest/userguide/index.html#developing/expiration/configuring_data_expiration.html

  • Thanks a lot Markito for the quick reply, I am going to do a shortly POC based on your recommendations and revert back to you ASAP. – Ilivetoenjoy Feb 26 '15 at 17:39
1

Ehcache expiration does not offer such a feature out of the box.

You still have some options:

Community
  • 1
  • 1
Louis Jacomet
  • 13,661
  • 2
  • 34
  • 43
  • Thanks a lot Markito for the quick reply, I am going to do a shortly POC based on your recommendations and revert back to you ASAP. – Ilivetoenjoy Feb 26 '15 at 17:40