Evaluate expirable LRU cache from hashicorp #639
Labels
No Label
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#639
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
In the frostfs-node we have our own cache which supports per-key locking and TTL values.
The latter can be removed by adopting recently introduced expireable package https://github.com/hashicorp/golang-lru/blob/master/expirable/expirable_lru.go
Adopt it for our use-case and see whether it makes us simpler or faster.
Let's wait until the next release, before actually merging it: there are some bugs https://github.com/hashicorp/golang-lru/issues/150