You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cayenne.apache.org by "Andrus Adamchik (JIRA)" <ji...@apache.org> on 2013/05/24 08:22:20 UTC
[jira] [Created] (CAY-1825) Simlify API for setting up query
caching
Andrus Adamchik created CAY-1825:
------------------------------------
Summary: Simlify 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