Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-1006

ConcurrentLRUCache API improvements

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Component/s: None
    • Labels:
      None

      Description

      This is to make ConcurrentLRUCache more consistent with LinkedHashMap behavior

      1. remove must not call evictionListener.evictedEntry()
      2. EvictionListener must be able prevent eviction of an element by returning a false.
      3. Add a new method Map getOldestItems(long n)

        Attachments

        1. SOLR-1006.patch
          4 kB
          Shalin Shekhar Mangar
        2. SOLR-1006.patch
          3 kB
          Noble Paul

          Activity

            People

            • Assignee:
              shalinmangar Shalin Shekhar Mangar
              Reporter:
              noble.paul Noble Paul
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: