Versions in this module Expand all Collapse all v1 v1.0.1 Aug 16, 2020 v1.0.0 Apr 16, 2020 Changes in this version + var ErrCacheMiss = errors.New("cache miss") + var ErrInvalidCap = errors.New("cache cap <= 0") + type Cache struct + func New(cap int) (cache *Cache, err error) + func (cache *Cache) Cap() int + func (cache *Cache) Get(key interface{}) (value interface{}, err error) + func (cache *Cache) IsEmpty() bool + func (cache *Cache) IsFull() bool + func (cache *Cache) Len() int + func (cache *Cache) Set(key interface{}, value interface{}) (err error) Other modules containing this package github.com/NdoleStudio/lfu-cache/v2