Versions in this module Expand all Collapse all v0 v0.0.1 May 29, 2023 Changes in this version + type Cache struct + func NewCache(opts ...Option) *Cache[K, V] + func (c *Cache[K, V]) Delete(key K) + func (c *Cache[K, V]) Get(key K) (zero V, _ bool) + func (c *Cache[K, V]) Keys() []K + func (c *Cache[K, V]) Len() int + func (c *Cache[K, V]) Load(filePath string) error + func (c *Cache[K, V]) Save(filePath string) error + func (c *Cache[K, V]) Set(key K, val V) + type Option func(*options) + func WithCapacity(cap int) Option