Skip to content

JGpGH/golfu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GOLFU

In-memory cache system

  • plug your cold storage on it to eventually persist all setted data
  • auto eviction by read count (LFU); only evicts persisted data
  • retrieves all cache-miss from the cold storage
  • "eventual" persistency (async if you will) allows for shorter set operation
  • you will see everything you need to implement or use and a couple helpers func & struct in /storage

ctx

Don't use in production lol
Feel free to submit a PR or put a comment or whatever if you find a bug or wanna improve it somehow

 /\
( /   @ @    ()
 \  __| |__  /
  -/   "   \-
 /-|       |-\
/ /-\     /-\ \
 / /-`---'-\ \     ascii crab
  /         \

About

Go LFU cache implementation

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages