You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by souciance <so...@gmail.com> on 2016/02/18 12:43:32 UTC
Camel cache entries gone after certain interval
Hi,
I have implemented camel cache as follows:
from("cache://cache1" + "?maxElementsInMemory=100"+
"&memoryStoreEvictionPolicy=MemoryStoreEvictionPolicy.LFU"+
"&overflowToDisk=true" +
"&eternal=true"+
"&diskPersistent=true")
All elements are set to eternal so they should stay forever.
However, we have noticed that every once in a while we when do a cache GET
the key entry that worked a short file ago is reported as not found. A few
minutes later when the entry is added and we do a GET it works again. A few
minutes later it reports it as not found. Is there a parameter missing or
have I missed something?
Essentially we are just storing string key values.
Best
Souciance
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-cache-entries-gone-after-certain-interval-tp5777835.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel cache entries gone after certain interval
Posted by souciance <so...@gmail.com>.
I debugged the flow and saw this:
[d #2 - NettyEventExecutorGroup] CacheProducer DEBUG
Quering an element with key Login from the Cache
[d #2 - NettyEventExecutorGroup] CacheEventListener DEBUG
Element [ key = Login, value=1, version=1, hitCount=0, CreationTime =
1455798324000, LastAccessTime = 1455798324000 ] has expired in cache cache1
So, somehow even though I have eternal to true, the element still expires?
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-cache-entries-gone-after-certain-interval-tp5777835p5777836.html
Sent from the Camel - Users mailing list archive at Nabble.com.