-
1. Re: Can TreeCache do what I need?
manik May 16, 2007 11:26 AM (in response to aditsu)Hi - yes, JBoss Cache can do all of the above. Please have a look at the user guide in the JBoss Cache docs page for details of each feature.
-
2. Re: Can TreeCache do what I need?
aditsu May 16, 2007 12:35 PM (in response to aditsu)Hi, thank you for your reply and for developing this great project.
I see that the "TreeCache" name is being deprecated in favor of "JBoss Cache".
I'm happy to hear that all those features are supported, however I was hoping for a bit more guidance. I had already read the user guide, but it's not really clear how to set up everything to achieve the desired results. I don't expect a complete configuration, but maybe some hints such as "configure replication this way", "use a foo cache loader with the bar option", "enable passivation", etc.
I can probably figure out some of the options, but I'd like to specifically ask how to serialize changes to disk until they are flushed to the persistent store (and delete the files after flushing).
Thanks
Adrian -
3. Re: Can TreeCache do what I need?
manik May 16, 2007 1:25 PM (in response to aditsu)It is best that you go thru the docs and set up your system accordingly, and then post specific tuning questions here rather than an all-encompassing discussion.
I can probably figure out some of the options, but I'd like to specifically ask how to serialize changes to disk until they are flushed to the persistent store (and delete the files after flushing).
I presume you mean the CacheLoader here. CacheLoaders can use a variety of backing stores to offload cache data to disk, although this isn't a "temp" space. Flushing to a CacheLoader can happen synchronously (this is the default).
I'm presuming you have an external data store (such as a database) where you obtain your data, and use the cache as an im-memory store for cheap/easy access? If not (i.e., you use the cache loader to persist state to a shared DB) you could chain cache loaders:
1) Use a local disk based cache loader (such as Oracle's Berkeley DB or jdbm Cache Loader) in sync mode (immediate flushes)
2) JDBCCacheLoader pointing to your DB, in async mode.