Versions in this module Expand all Collapse all v0 v0.1.1 Jan 26, 2019 v0.1.0 Jan 12, 2019 Changes in this version + const Default_LRU_Size + type LRU struct + func NewLRUCache(size int) *LRU + func (l *LRU) Cap() int + func (l *LRU) Contains(key interface{}) bool + func (l *LRU) Get(key interface{}) (value interface{}, ok bool) + func (l *LRU) GetOrSet(key, value interface{}) (newValue interface{}, isGet bool) + func (l *LRU) Info() (hits int, misses int, maxSize int, currentSize int) + func (l *LRU) Keys() []interface{} + func (l *LRU) Len() int + func (l *LRU) PopOldest() (key, value interface{}) + func (l *LRU) Purge() + func (l *LRU) Remove(key interface{}) bool + func (l *LRU) Set(key, value interface{}) (evicted bool)