Skip to content

Releases: karlseguin/ccache

v3.0.6

01 Oct 02:40
0901f94
Compare
Choose a tag to compare

add Setnx2 which takes a factory, rather than a value, to lazily create the value only if it doesn't already exist.

v3.0.5

22 Oct 12:19
62cd8cc
Compare
Choose a tag to compare

Add Setnx

v3.0.4

19 Oct 22:52
0f85751
Compare
Choose a tag to compare

Add item.Key() to expose the key.

Refactor Control Comands/Logic

07 Jan 04:13
3505243
Compare
Choose a tag to compare
Merge pull request #78 from karlseguin/control_stop

Refactor control messages + Stop handling

v3.0.2

18 Dec 03:21
Compare
Choose a tag to compare

Fix issue where an item that was being processed for deletion and promotion at the same time might break the cache size limit

v3.0.1

19 Nov 00:32
Compare
Choose a tag to compare

Fix memory leak caused when an item was both deleted (or deleted as part of being replaced in an update) and GC'd.

v3.0.0

23 Oct 05:30
Compare
Choose a tag to compare

Generics.

Import github.com/karlseguin/ccache/v3 (or continue using github.com/karlseguin/ccache for the non-generic version)

For the most part, the type of value only needs to be set when configuring the cache:

// a cache with string values
var cache = ccache.New(ccache.Configure[string]())

And then calls to item.Value() will return a string.

v2.0.8

06 Feb 02:03
Compare
Choose a tag to compare

ForEachFunc

v2.0.7

11 Dec 01:42
36ffada
Compare
Choose a tag to compare
Merge pull request #52 from gopalmor/master

Avoid blocking if promotables channel is full.

v2.0.6

29 Jun 12:51
Compare
Choose a tag to compare

use v2 for go module