Re: Caching query results

From: Borut Bolčina (borut.bolcin..mail.com)
Date: Sun Aug 24 2008 - 12:00:31 EDT

  • Next message: Andrus Adamchik: "Re: Caching query results"

    Hi,

    there is still no info/examples about OSCache usage at
    http://cayenne.apache.org/doc/caching-and-fresh-data.html. Is there anything
    in the oven?

    Cheers,
    Borut

    2006/9/25 Andrus Adamchik <andru..bjectstyle.org>

    > Until 3.0 invalidating query lists was totally up to the developer.
    >
    > In 3.0 we added three things - RefreshQuery (mentioned by Ari), "query
    > cache group" concept, and pluggable QueryCache. This makes clustering and
    > refresh policy management much simpler. I am running this latest code (3.0
    > trunk essentially) in pre-production environment on a cluster using
    > OSQueryCache and it work extremely well.
    >
    > I am going to document it better at some point (maybe even write an
    > article). For now please post on the list if you have more questions about
    > that. Essentially I do something like this:
    >
    > dataDomain.setQueryCacheFactory(new OSQueryCacheFactory());
    >
    > and then configure "oscache.properties" with group refresh policies (see
    > OSQueryCache javadocs and OSCache framework documentation for details).
    >
    >



    This archive was generated by hypermail 2.0.0 : Sun Aug 24 2008 - 12:01:04 EDT