Uploaded image for project: 'Spring Modules'
  1. Spring Modules
  2. MOD-469

Add pre-insert into cache and post-get from cache hook method

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9
    • Fix Version/s: None
    • Component/s: CACHE
    • Labels:
      None

      Description

      I use declarative cache for specific methods. I noticed that a few developer used to change the value of data returned by cache. As they get object reference from the cache (I use ehcache), they can change value and then impact teh following callers.

      I would like to get sure this problem doesn't occur anymore, and so would like to have a method hook so that I could serialize result before putting in cache, and the deserializing afte getting from cache.
      The current implementation doesn't allow this easily.

        Attachments

          Activity

            People

            Assignee:
            yatesco Colin Yates
            Reporter:
            djeanprost Dominique Jean-Prost
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: