Re: per-class cache

Armin Waibel <[email protected]>
Newsgroups gmane.comp.jakarta.ojb.user
Message-ID <[email protected]>
Hi,

Maxim Kuleshov wrote:
> Hello!
> 
> If I use per-class cache feature, will cache instance be created for 
> every distinct class? Guess, it's wasteful to have different caches 
> sharing exactly same behavior.
> 
> That special cache will be used to store almost-static DB data. How 
> could I implement this?

You can declare different caches for each class if needed (override the 
global defined cache on  jdbc-connection-descriptor level)
http://db.apache.org/ojb/docu/guides/objectcache.html#How+to+declare+and+change+the+used+ObjectCache+implementation
Dependent on the used cache implementation the specified attributes 
should take effect only for objects of the class.

regards,
Armin

> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.