Versions in this module Expand all Collapse all v1 v1.0.1 Jan 31, 2017 v1.0.0 Jan 10, 2017 Changes in this version + func Free(n int, c Cache) bool + type Cache interface + Cap func() int + Drop func(n int) + Len func() int + Resize func(n int) + func NewFIFO(n int) Cache + func NewLRU(n int) Cache + func NewRandom(n int) Cache + type FIFO struct + func (c *FIFO) Cap() int + func (c *FIFO) Drop(n int) + func (c *FIFO) Get(base int64) bgzf.Block + func (c *FIFO) Len() int + func (c *FIFO) Peek(base int64) (exist bool, next int64) + func (c *FIFO) Put(b bgzf.Block) (evicted bgzf.Block, retained bool) + func (c *FIFO) Resize(n int) + type LRU struct + func (c *LRU) Cap() int + func (c *LRU) Drop(n int) + func (c *LRU) Get(base int64) bgzf.Block + func (c *LRU) Len() int + func (c *LRU) Peek(base int64) (exist bool, next int64) + func (c *LRU) Put(b bgzf.Block) (evicted bgzf.Block, retained bool) + func (c *LRU) Resize(n int) + type Random struct + func (c *Random) Cap() int + func (c *Random) Drop(n int) + func (c *Random) Get(base int64) bgzf.Block + func (c *Random) Len() int + func (c *Random) Peek(base int64) (exist bool, next int64) + func (c *Random) Put(b bgzf.Block) (evicted bgzf.Block, retained bool) + func (c *Random) Resize(n int) + type Stats struct + Evictions int + Gets int + Misses int + Puts int + Retains int + type StatsRecorder struct + func (s *StatsRecorder) Get(base int64) bgzf.Block + func (s *StatsRecorder) Put(b bgzf.Block) (evicted bgzf.Block, retained bool) + func (s *StatsRecorder) Reset() + func (s *StatsRecorder) Stats() Stats