Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-60

Disk cache grows unnecessarily

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • Indexed Disk Cache
    • None

    Description

      I'm using JCS cache in UPDATE mode and I found that disk cache may grow when adding the cache entries with the same key but larger value.

      For example,
      cache.put("key", "value");
      cache.put("key", "value1");
      cache.put("key", "value12");

      After that I see that *.data file contains all 3 entries. And the cache is not optimized at shutdown even when isShutdownOptimizationEnabled is set to true.

      I found a workaround for this - delete the key before writing.

      Attachments

        Activity

          People

            asmuts Aaron Smuts
            asofronov Alexander Sofronov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: