All Versions
8
Latest Version
Avg Release Cycle
212 days
Latest Release
91 days ago

Changelog History

  • v1.5.0

    June 17, 2019

    🛠 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.

  • v1.4.0

    April 29, 2019

    🛠 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
    ----------------------------------------------------------+-------------
    
  • v1.3.0

    March 27, 2019

    🛠 Fixes issue #15 - checkExpireCallback doesn't work when skipTtlExtension is enabled.

  • v1.2.0

    September 08, 2018

    ⚡️ This fixes issue #12 and updates the Travis CI to current go versions.

    SkipTtlExtensionOnHit allows the user to change the cache behaviour. When this flag is set to true it will
    no longer extend TTL of items when they are retrieved using Get, or when their expiration condition is evaluated using SetCheckExpirationCallback.

  • v1.1.1

    September 08, 2018

    🛠 This fixes issue #14, which can occur when using SetCheckExpirationCallback and it returns false on the last element in the list.

  • v1.1.0

    October 28, 2017

    No outstanding issues, so let's tag this.

  • v1.0.1

    May 28, 2015
  • v1.0.0

    May 28, 2015