Versions in this module Expand all Collapse all v0 v0.1.0 May 20, 2019 Changes in this version + type EvictCallback func(key int, value interface{}) + type LRU struct + func NewLRU(size int, onEvict EvictCallback) (*LRU, error) + func (c *LRU) Add(key int, value interface{}) (evicted bool) + func (c *LRU) Contains(key int) (ok bool) + func (c *LRU) Get(key int) (value interface{}, ok bool) + func (c *LRU) GetOldest() (key int, value interface{}, ok bool) + func (c *LRU) Keys() []int + func (c *LRU) Len() int + func (c *LRU) Peek(key int) (value interface{}, ok bool) + func (c *LRU) Purge() + func (c *LRU) Remove(key int) (present bool) + func (c *LRU) RemoveOldest() (key int, value interface{}, ok bool) + type PagedReader struct + func NewPagedReader(reader io.ReaderAt, pagesize int64, cache_size int) (*PagedReader, error) + func (self *PagedReader) ReadAt(buf []byte, offset int64) (int, error)