README ¶ BigCache Mostly GC-free In-memory Cache Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Cache func New(numSegments int, segmentSize int) *Cache func (c *Cache) Delete(key []byte) bool func (c *Cache) Get(key []byte, value []byte) (int, bool) func (c *Cache) GetAccessCount() uint64 func (c *Cache) GetHitCount() uint64 func (c *Cache) GetTotal() uint64 func (c *Cache) Put(key []byte, value []byte) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { // contains filtered or unexported fields } Cache ... func New ¶ func New(numSegments int, segmentSize int) *Cache New ... func (*Cache) Delete ¶ func (c *Cache) Delete(key []byte) bool Delete ... func (*Cache) Get ¶ func (c *Cache) Get(key []byte, value []byte) (int, bool) Get ... func (*Cache) GetAccessCount ¶ func (c *Cache) GetAccessCount() uint64 GetAccessCount ... func (*Cache) GetHitCount ¶ func (c *Cache) GetHitCount() uint64 GetHitCount ... func (*Cache) GetTotal ¶ func (c *Cache) GetTotal() uint64 GetTotal ... func (*Cache) Put ¶ func (c *Cache) Put(key []byte, value []byte) Put ... Source Files ¶ View all Source files bigcache.go ringbuf.go segment.go Directories ¶ Show internal Expand all Path Synopsis memhash Click to show internal directories. Click to hide internal directories.