mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-26 08:28:26 +00:00
a9339d0627
This reverts commit 992ad97ad5540c7c61debb321b9b3f6acdcaa9bc. Causes issues on Windows which uses file locking. Meaning we cannot archive or modify the file while it's open.
A simple LFU cache for golang. Based on the paper An O(1) algorithm for implementing the LFU cache eviction scheme.
Usage:
import "github.com/dgrijalva/lfu-go"
// Make a new thing
c := lfu.New()
// Set some values
c.Set("myKey", myValue)
// Retrieve some values
myValue = c.Get("myKey")
// Evict some values
c.Evict(1)