ccache

A golang LRU Cache for high concurrency

MIT License

Stars
1.3K
Committers
22

Bot releases are hidden (Show)

ccache - v3.0.5 Latest Release

Published by karlseguin 12 months ago

Add Setnx

ccache - v3.0.4

Published by karlseguin almost 1 year ago

Add item.Key() to expose the key.

ccache - Refactor Control Comands/Logic

Published by karlseguin almost 2 years ago

ccache - v3.0.2

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

ccache - v3.0.1

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.

ccache - v3.0.0

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.

ccache - v2.0.8

Published by karlseguin over 3 years ago

ForEachFunc

ccache - v2.0.7

Published by karlseguin almost 4 years ago

ccache - v2.0.6

Published by karlseguin over 4 years ago

use v2 for go module

ccache - v2.0.5

Published by karlseguin over 4 years ago

Added SetMaxSize to change the size of the cache at runtime

ccache - v2.0.4

Published by karlseguin over 4 years ago

DeletePrefix, GetDropped and go modules

ccache - 2.0.3

Published by karlseguin over 5 years ago

ccache - 2.0.2

Published by karlseguin almost 8 years ago

ccache - 2.0.1

Published by karlseguin almost 8 years ago

Package Rankings
Top 1.07% on Proxy.golang.org