Chore: remove old cache implementation
This commit is contained in:
4
common/cache/lrucache.go
vendored
4
common/cache/lrucache.go
vendored
@ -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),
|
||||
|
Reference in New Issue
Block a user