cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrus Adamchik (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAY-1825) Simplify API for setting up query caching
Date Fri, 24 May 2013 06:22:20 GMT

     [ https://issues.apache.org/jira/browse/CAY-1825?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Andrus Adamchik updated CAY-1825:
---------------------------------

    Summary: Simplify API for setting up query caching  (was: Simlify API for setting up query
caching)
    
> Simplify API for setting up query caching
> -----------------------------------------
>
>                 Key: CAY-1825
>                 URL: https://issues.apache.org/jira/browse/CAY-1825
>             Project: Cayenne
>          Issue Type: Improvement
>          Components: Core Library
>            Reporter: Andrus Adamchik
>            Assignee: Andrus Adamchik
>            Priority: Minor
>             Fix For: 3.2M1
>
>
> In addition to verbose version of configuring query caching:
> query.setCacheStrategy(QueryCacheStrategy.LOCAL_CACHE);
> query.setCacheGroups("g1", "g2")
> add a short one:
> query.useLocalCache("g1", "g2");
> or 
> query.useSharedCache("g1", "g2");
> Both are varargs methods of course. We probably don't care to have separate methods for
more obscure cache strategies, such as LOCAL_CACHE_REFRESH, which can be configured the old
way.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message