Skip to content

Tags: karlseguin/ccache

Tags

v3.0.6

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Merge pull request #93 from chenyijun266846/perf_setnx

perf: add setnx2

v3.0.5

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #85 from rfyiamcool/feat/add_setnx

feat: add setnx (if not exists, set kv)

v3.0.4

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #84 from idsulik/added-key-method-to-item

Added Key() method to Item

v3.0.3

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #78 from karlseguin/control_stop

Refactor control messages + Stop handling

v3.0.2

On delete, always set promotions == -2 and node == nil

Also, item.promotions doesn't need to be loaded/stored using atomic. Once upon a
time it did. Cache was updated long ago to not use atomic operations on it, but
LayeredCache wasn't. They are both consistent now (they don't use atomic
operations).

Fixes: #76

v3.0.1

Fix memory leak

As documented in #76, an entry which
is both GC'd and deleted (either via a delete or an update) will result in the
internal link list having a nil tail (because removing the same node multiple times
from the linked list does that).

doDelete was already aware of "invalid" nodes (where item.node == nil), so the
solution seems to be as simple as setting item.node = nil during GC.

v3.0.0

always run tests with -race and withint caching

v2.0.8

add ForEachFunc

v2.0.7

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #52 from gopalmor/master

Avoid blocking if promotables channel is full.

v2.0.6

go mod version