[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]
Messages posted by: pcaswell  XML
Profile for pcaswell -> Messages posted by pcaswell [1]
Author Message
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
 
Profile for pcaswell -> Messages posted by pcaswell [1]
Go to:   
Powered by JForum 2.1.7 © JForum Team