If cacheResults() returns true the caching mechanism in ExternalStore is
used. I can't remember if Oliver added timeouts to that cache (I think
he did recently), but if not objects are expired when the cache fills or
when the object changes. With the roundtrip times involved in loading
information from LDAP the preemptive caching strategy was a necessity.
I'd recommend avoiding it if possible since it adds a bit of complexity.

-James

On Thu, 2005-02-10 at 09:18 -0800, Andy Depue wrote:
> Short version: If the method 'boolean cacheResults()' defined in 
> 'org.apache.slide.common.Service' returns true, will the store benefit from 
> some kind of automatic caching?
> Long version: I'm implementing my own principal Store and am basing my work 
> off of JNDIPrincipalStore.  JNDIPrincipalStore has a rather robust caching 
> mechanism (it does preemptive cache refreshes).  I don't need preemtive cache 
> refreshes, so I'm wondering... JNDIPrincipalStore overrides the method 
> 'public boolean cacheResults()' to return false, I'm assuming so that it can 
> take over caching itself.  If this method returns 'true', will I benefit from 
> automatic caching?  If so, how configurable is the caching?  All I need is a 
> cache that expires objects after X amount of time - I just don't need 
> preemtive refreshes - and I don't want to create yet another cache (even 
> though EHCache makes this fairly easy, it is still a bother). :)
> 
> Thanks,
>   Andy
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


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

Reply via email to