File: CHANGELOG.md

package info (click to toggle)
golang-github-renekroon-ttlcache 2.3.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: makefile: 3
file content (34 lines) | stat: -rw-r--r-- 1,116 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# 2.3.0 (February 2021)

## API changes:

* #38: Added func (cache *Cache) SetExpirationReasonCallback(callback ExpireReasonCallback) This wil function will replace SetExpirationCallback(..) in the next major version.

# 2.2.0 (January 2021)

## API changes:

* #37 : a GetMetrics call is now available for some information on hits/misses etc.
*  #34 : Errors are now const

# 2.1.0 (October 2020)

## API changes

* `SetCacheSizeLimit(limit int)` a call  was contributed to set a cache limit. #35

# 2.0.0 (July 2020)

## Fixes #29, #30, #31

## Behavioural changes

* `Remove(key)` now also calls the expiration callback when it's set
* `Count()` returns zero when the cache is closed

## API changes

* `SetLoaderFunction` allows you to provide a function to retrieve data on missing cache keys.
* Operations that affect item behaviour such as `Close`, `Set`, `SetWithTTL`, `Get`, `Remove`, `Purge` now return an error with standard errors `ErrClosed` an `ErrNotFound` instead of a bool or nothing
* `SkipTTLExtensionOnHit` replaces `SkipTtlExtensionOnHit` to satisfy golint
* The callback types are now exported