Update module github.com/karlseguin/ccache/v2 to v3
This MR contains the following updates:
Package | Type | Update | Change |
---|---|---|---|
github.com/karlseguin/ccache/v2 | require | major |
v2.0.8 -> v3.0.5
|
MR created with the help of gitlab-org/frontend/renovate-gitlab-bot
Release Notes
karlseguin/ccache
v3.0.5
Add Setnx
v3.0.4
Add item.Key()
to expose the key.
v3.0.3
: Refactor Control Comands/Logic
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
.
Supersedes !916 (closed)
TODO
-
Feature flag
-
Added feature flag: -
This feature does not require a feature flag
-
-
I added the Changelog
trailer to the commits that need to be included in the changelog (e.g.Changelog: added
) -
I added unit tests or they are not required -
I added acceptance tests or they are not required -
I added documentation (or it's not required) -
I followed code review guidelines -
I followed Go Style guidelines
Edited by Jaime Martinez