hurry is a LRU cache in go
- LRU
- LRUK // TODO
- TwoQueue // TODO
- KQueue // TODO
type Hurry interface {
Get(key string) interface{}
Put(key string, obj interface{})
Delete(key ...string)
Exist(key string) bool
Len() int64
}
go get arthurkiller/hurry
lru := NewHurry(100, hurry.LRU)
lru.Get("foo")