On Wed, 2004-10-20 at 00:30, Oliver Zeigermann wrote:
> Folks,
> 
> I have augmentd the store caches to support timeouts as well. You can
> configure it in Domain.xml. Example:
> 
> <store name="memory">
>         <parameter name="cache-timeout">10</parameter>
>     <nodestore classname="org.apache.slide.store.mem.TransientNodeStore"/>
> ...
> </store>
> 
> This would mean that all cache entries get invalid after 10 seconds.
> Which might be useful when stores get changed from other sources than
> Slide and you do not want to switch off global caches completely.
> 
> By default the timeout is infinite which means if you do not change
> anything in Domain.xml Slide will behave in the same way as before.
> 
> Oliver
> 
> P.S.: James, just wondering, would this be useful for the JNDI user
> store as well?

I think so. The JNDIStore uses pre-emptive cache refreshing to shield
users from slow queries, so there would need to be a way to put things
into the cache from outside ExtendedStore. Also, ehcache is a bit more
tuneable then just a single timeout value, but I doubt that's such a big
deal.

-James


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to