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

Deprecate size() and clear() methods from QueryCache interface

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.M5
    • Core Library
    • None

    Description

      1. clear() method can be really dangerous to call when some shared external cache is used as it can drop the whole cache content not only the one managed by Cayenne. And we shouldn't interfere with external environment.
      2. size() method on the other side is safe, but it is already unsupported by JCache provider and it can give not useful results for other providers too, and moreover cache management shouldn't be done by Cayenne as it is implementation and usage dependent

      So the only question is wether to delete this methods or just deprecate them in 4.0

      Attachments

        Activity

          People

            ntimofeev Nikita Timofeev
            ntimofeev Nikita Timofeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: