Versions in this module Expand all Collapse all v1 v1.3.0 Jun 7, 2026 Changes in this version + type Cache struct + func New(maxBytes int) *Cache + func (c *Cache) Del(key []byte) + func (c *Cache) Get(dst, key []byte) []byte + func (c *Cache) GetBig(dst, key []byte) []byte + func (c *Cache) Has(key []byte) bool + func (c *Cache) HasGet(dst, key []byte) ([]byte, bool) + func (c *Cache) LoadFromFile(filePath string) error + func (c *Cache) Reset() + func (c *Cache) SaveToFileConcurrent(filePath string, concurrency int) error + func (c *Cache) Set(key, value []byte) + func (c *Cache) SetBig(key, value []byte) + func (c *Cache) UpdateStats(s *Stats) + type Stats struct + BytesSize uint64 + Collisions uint64 + EntriesCount uint64 + GetCalls uint64 + Misses uint64 + SetCalls uint64 v1.2.1 Jan 12, 2026