GitXplorerGitXplorer
l

tinylfu

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Verified
d9fb280b9f64d0b30b969dfa5f83a1e4028ca04b

Update lfu.go

llinyihai committed 4 years ago
Verified
ee1688033d1eafee1063e61c8d70506d70d323be

Create README.md

llinyihai committed 4 years ago
Verified
876a9951f2398e1f12be2c1fbadfe67c7d51b0c1

Add files via upload

llinyihai committed 4 years ago

README

The README file for this repository.

tinylfu

go语言实现的LFU缓存,使用哈希表和双链表实现。

主要接口

func (lfu *LFUCache) Get(key interface{}) interface{}
func (lfu *LFUCache) Put(key interface{}, value interface{}) 
func (lfu *LFUCache) GetIterator() func() *dbNode
func (lfu *LFUCache) GetAll() []interface{} 

提供一种思路实现LFU算法