https://github.com/dchest/cache
Go package cache implements LRU (Least Recently Used) cache algorithm. [[ Deprecated, use https://github.com/dchest/lru ]]
https://github.com/dchest/cache
Last synced: about 1 year ago
JSON representation
Go package cache implements LRU (Least Recently Used) cache algorithm. [[ Deprecated, use https://github.com/dchest/lru ]]
- Host: GitHub
- URL: https://github.com/dchest/cache
- Owner: dchest
- License: bsd-2-clause
- Created: 2013-09-26T12:41:49.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-18T20:49:07.000Z (over 11 years ago)
- Last Synced: 2025-04-11T04:36:22.080Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 126 KB
- Stars: 11
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
***************************************************************************
** This package is deprecated in favor of https://github.com/dchest/lru ***
***************************************************************************
Go package cache implements LRU (Least Recently Used) cache algorithm.
Cache capacity can be optionally limited by both size in bytes and a number
of items. Items can keep track of their modification and access time.
INSTALLATION
$ go get github.com/dchest/cache
DOCUMENTATION
See http://godoc.org/github.com/dchest/cache
ACKNOWLEDGEMENTS
Some code structure ideas are inspired by YouTube's Vitess implementation of
LRU cache, but no code was taken from it:
https://github.com/youtube/vitess/blob/master/go/cache/lru_cache.go
Thanks to Chaker Nakhli (@nakhli) for the article:
http://www.sinbadsoft.com/blog/a-lru-cache-implementation/