ttlcache v1.5.0 Release Notes

Release Date: 2019-06-17 // 3 months ago
  • 🛠 Depending on your usage, the issues fixed may improve stability of your programs:

    🔧 #20 : A crash was observed by me in a configuration that was not in the test suite. This subsequently triggered some rework on the locking.


Previous changes from v1.4.0

  • 🛠 Depending on your usage, the issues fixed may improve stability of your programs:

    🐎 #17 : Fixes a data race on read and introduces RWLock which is better for performance on heavy workloads.
    ⬆️ #18 : Addresses excessive memory usage if you have a long running timer as global TTL. if pprof shows most of your memory in use coming from ttlcache then you must upgrade:

    [...]
    ----------------------------------------------------------+-------------
          flat flat% sum% cum cum% calls calls% + context        
    ----------------------------------------------------------+-------------
                                             1034.31MB 100% | github.com/ReneKroon/ttlcache.(*Cache).startExpirationProcessing
      983.58MB 82.74% 82.74% 1034.31MB 87.00% | time.NewTimer
                                               50.73MB 4.90% | time.startTimer
    ----------------------------------------------------------+-------------