Uploaded image for project: 'Cayenne'
  1. Cayenne
  2. CAY-1825

Simplify API for setting up query caching

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 3.2.M1
    • Core Library
    • None

    Description

      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.

      Attachments

        Activity

          People

            andrus Andrus Adamchik
            andrus Andrus Adamchik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: