Releases: karlseguin/ccache
Releases · karlseguin/ccache
v3.0.6
v3.0.5
Add Setnx
v3.0.4
Add item.Key()
to expose the key.
Refactor Control Comands/Logic
Merge pull request #78 from karlseguin/control_stop Refactor control messages + Stop handling
v3.0.2
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
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
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
ForEachFunc
v2.0.7
Merge pull request #52 from gopalmor/master Avoid blocking if promotables channel is full.
v2.0.6
use v2 for go module