ttlcache v1.4.0 Release Notes

Release Date: 2019-04-29 // almost 5 years ago
  • 🛠 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
    ----------------------------------------------------------+-------------