You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by Armin Waibel <ar...@code-au-lait.de> on 2003/09/04 11:20:24 UTC

Re: Class by class cache

Hi Sebastien,

I'm currently working on the cache stuff. I
will check in my changes in the next few days.
Then it's possible to declare
- class by class cache
- per database (more detailed per jdbc-connection-descriptor) cache
(used if no cache for class was declared)
- a default global cache
(used if no cache for class or database was declared)

With CacheFilter you can do any operation before
a object was put to cache - e.g. filter out objects you
don't want to cache. You can find a two sample
implementations in cache package, called CacheFilterClassImpl,
CacheFilterPackageImpl. CacheFilter need to be declared in
OJB.properties.

regards,
Armin

----- Original Message -----
From: "Sebastien Cesbron" <se...@laposte.net>
To: "OJB Users List" <oj...@db.apache.org>
Sent: Thursday, September 04, 2003 1:00 PM
Subject: Class by class cache


> Hi,
>
> I would like to specify different cache strategies for different
> classes. I have some classes that are not updated frequently and I
want
> these classes to be cached in priority.
> I am looking at Hibernate and OJB and I found that in Hibernate you
can
> specify a class by class cache strategy. Is it something feasible with
OJB ?
> In the documentation about ObjectCache there is a section on cache
> filter but this section is not finished. Is CacheFilter something that
> can help me specify my cache strategy ?
>
> Thanx
>
> Seb
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org