[Opensource] configuring the cache
Tsanko Stefanov
tsanstef at hotmail.com
Mon Sep 16 13:12:39 PDT 2002
Hi,
I have some question regarding the cache.
1) Is there any doc available about using the expresso's caching in the best
way? Some sample would be great. This is one of the most powerfull features
of the framework and I think that some elaboration in expresso's doc will be
great.
2) I saw that you have a field "cachesize" in the DBOBJLIMIT table. I guess
that this is to indicate what is the maximum instances for a particular
cache item. Well I am trying to utilize the cache by creating so cache
instances by myself and I was wondering how to set the number of instances
for my cache item. Basically I am creating a cache entry for a Vector.
ex:
if (!CacheManager.existsCache(getDBName(), cacheName)) {
CacheManager.createCache(getDBName(), cacheName, true);
}
Vector myValues = CacheManager.getItems(getDBName(), cacheName);
if (myValues == null) {
myValues = getComboValuesNoCache(style);
CacheManager.setItems(getDBName(), cacheName, myValues);
}
_________________________________________________________________
Join the worlds largest e-mail service with MSN Hotmail.
http://www.hotmail.com
More information about the Opensource
mailing list