[Opensource] Cashing
Michael Rimov
rimovm at centercomp.com
Tue Jul 9 20:02:30 PDT 2002
At 09:01 PM 7/9/2002 +0000, you wrote:
>Hi folks,
>
>I was thinking are there samo examples on how to use the Cashing
>mechanisms? I had couple of Objects of mine, that I use extensively and i
>thought about cashing.
>A small tutorial will be great!
I don't think there's a good tutorial, but I WOULD suggest that you take a
look at the code for SecuredDBObject. It creates its own private cache
that it uses for security checks. The only heads up that I'd give you off
the top of my head is that in the future CacheManager should be addressed
as: [in an example]
CacheManager.getInstance().addCache();
instead of the current
CacheManager.addCache();
The reason is that I'm getting away from the static methods so we can have
a pluggable cache system.
HTH!
-Mike
More information about the Opensource
mailing list