[Logo] Terracotta Discussion Forums (LEGACY READ-ONLY ARCHIVE)
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
[Expert]
Does Cache.removeAll also clear last access time?  XML
Forum Index -> Ehcache
Author Message
pcaswell

neo

Joined: 08/19/2014 01:30:22
Messages: 1
Offline

I need to be able to completely rebuild my cache from Db every hour. Currently I am establishing a write lock, calling removeAll and filling the cache from a Db query. This usually works fine.

Occasionally this process leaves the cache almost empty. I am certain that the query succeeds and enumerates all items correctly. Is it possible that I am re-adding the same element and somehow retaining it's old expiry time?

Browsing the source suggests this is not the case - the elementEvictionData is rebuilt when an Element is recreated - would appreciate any other ideas that may exhibit this way.

Ehcache version 2.5.4 ATM
 
Forum Index -> Ehcache
Go to:   
Powered by JForum 2.1.7 © JForum Team