Chore: remove old cache implementation

This commit is contained in:
Dreamacro
2022-08-17 11:43:13 +08:00
parent 3946d771e5
commit 6e058f8581
10 changed files with 26 additions and 205 deletions

View File

@ -64,8 +64,8 @@ type LruCache struct {
onEvict EvictCallback
}
// NewLRUCache creates an LruCache
func NewLRUCache(options ...Option) *LruCache {
// New creates an LruCache
func New(options ...Option) *LruCache {
lc := &LruCache{
lru: list.New(),
cache: make(map[any]*list.Element),