Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-8884

JCache.put() does more work than required

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • None
    • 9.1.6.Final, 9.2.0.CR3
    • JCache
    • None

    Description

      JCache.put() has a void return but in spite of that it retrieves the previous value.

      If the caller was getAndPut(), it'd make sense getting previous value.

      If external policy is set to anything other than eternal external policy, it'd make sense to get previous value to see if put is create or update (to get expiry).

      Any other time, getting previous value should not be necessary.

      Attachments

        Activity

          People

            Unassigned Unassigned
            rh-ee-galder Galder ZamarreƱo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: