I am using jboss-cache and I've implemented my own cacheloader to load my data 
from disk. I do not need/use transactions and replication (yet).

So basicly, when the node is still in the cache I get it from memory, and not 
from disk. When the cache is filling up, nodes get evicted. So basicly, I have 
now a read-cache.

But when I put something in the cache, it is persisted immediatly through the 
cacheloader. Thus no write-cache.

==> How can I get/simulate the write-cache behavior? How are 'dirty' nodes 
written when shutting down the application/cache?

Another, not related question: why does exist() behave differently than get 
with regard to the cache loader? If a node gets evicted, and I do a 
cache.exists(), it returns false, without checking the cacheloader. Why is that?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879886#3879886

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3879886


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to