Bot releases are hidden (Show)
Add Setnx
Published by karlseguin almost 1 year ago
Add item.Key()
to expose the key.
Published by karlseguin almost 2 years ago
Published by karlseguin almost 2 years ago
Fix issue where an item that was being processed for deletion and promotion at the same time might break the cache size limit
Published by karlseguin almost 2 years ago
Fix memory leak caused when an item was both deleted (or deleted as part of being replaced in an update) and GC'd.
Published by karlseguin almost 2 years ago
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
.
Published by karlseguin over 3 years ago
ForEachFunc
Published by karlseguin almost 4 years ago
Published by karlseguin over 4 years ago
use v2 for go module
Published by karlseguin over 4 years ago
Added SetMaxSize to change the size of the cache at runtime
Published by karlseguin over 4 years ago
DeletePrefix, GetDropped and go modules
Published by karlseguin over 5 years ago
Published by karlseguin almost 8 years ago
Published by karlseguin almost 8 years ago