Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-5935

AbstractSharedCachingDataStore#getRecordIfStored should use the underlying cache.get

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.1, 1.6.2, 1.8.0
    • blob
    • None

    Description

      The AbstractSharedCachingDataStore#getRecordIfStored can possibly use cache.get(dataIdentifier.toString()) instead of cache.getIfPresent(dataIdentifier.toString()) to load the binary in the cache from the backend,
      The access pattern has to be evaluated but possibly we always do a getStream() after retrieving a record. The GC code already bypasses this with OAK-4573.

      Attachments

        Issue Links

          Activity

            People

              amitjain Amit Jain
              amitjain Amit Jain
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: