Skip to content

arthurkiller/hurry

Repository files navigation

hurry

hurry is a LRU cache in go

Features

  • LRU
  • LRUK // TODO
  • TwoQueue // TODO
  • KQueue // TODO

Powerfull Interface

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

lru := NewHurry(100, hurry.LRU)
lru.Get("foo")

About

hurry is a LRU cache in go

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages