Skip to content

Releases: jftuga/TtlMap

v1.5.1

13 Nov 12:50
Compare
Choose a tag to compare
  • Bugfix for Put not updating existing data
  • Also simplified Put() logic.

Full Changelog: v1.5.0...v1.5.1

v1.5.0

08 Nov 11:25
Compare
Choose a tag to compare
  • The TtlMap key can now be any comparable data type.
  • Updated all tests and examples to use Generics
  • Added tests for non-string key types

Full Changelog: v1.4.0...v1.5.0

v1.4.0

07 Nov 12:29
Compare
Choose a tag to compare
  • Use time.Duration instead of int for maxTTL and pruneInterval parameters
  • Change all examples and tests to use time.Duration
  • Create GetNoUpdate() which is the same as Get(), except that is does not update the lastAccess expiration time
    • This ignores the refreshLastAccessOnGet parameter
  • Create TestGetNoUpdate() function

Full Changelog: v1.3.0...v1.4.0

v1.3.0

07 Nov 06:42
Compare
Choose a tag to compare

This closes issue 2 and issue 3

  • added a stop channel and Close() function to prevent orphaned goroutine
  • use maps.Copy() in All() function to prevent unprotected access
  • create test for All() function

Full Changelog: v1.2.0...v1.3.0

v1.2.0

24 Oct 01:28
Compare
Choose a tag to compare
  • add Clear() function
  • add API Function list to README.md

Full Changelog: v1.1.0...v1.2.0

v1.1.0

23 Oct 22:23
Compare
Choose a tag to compare
  • add Delete() function

Full Changelog: v1.0.0...v1.1.0

v1.0.0

23 Oct 21:34
Compare
Choose a tag to compare
1.0.0