https://github.com/arthurkiller/hurry
hurry is a LRU cache in go
https://github.com/arthurkiller/hurry
cache go lru
Last synced: 7 months ago
JSON representation
hurry is a LRU cache in go
- Host: GitHub
- URL: https://github.com/arthurkiller/hurry
- Owner: arthurkiller
- License: mit
- Created: 2018-04-25T03:20:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-05T01:35:47.000Z (over 6 years ago)
- Last Synced: 2025-02-09T10:28:09.042Z (8 months ago)
- Topics: cache, go, lru
- Language: Go
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# hurry
hurry is a LRU cache in go## Features
* LRU
* LRUK // TODO
* TwoQueue // TODO
* KQueue // TODO## Powerfull Interface
``` golang
type Hurry interface {
Get(key string) interface{}
Put(key string, obj interface{})
Delete(key ...string)
Exist(key string) bool
Len() int64
}
```## QuickStart
>> go get arthurkiller/hurry```golang
lru := NewHurry(100, hurry.LRU)
lru.Get("foo")
```