Versions in this module Expand all Collapse all v1 v1.0.0 Jul 9, 2024 Changes in this version + func NewBigCacheRing(bufferSize int32) (*bigCacheRing, error) + func NewCacheRing[T any](capacity int32) *cacheRing[T] + type Cache struct + func NewCacheWithCapacity[T any](capacity, cleanupInterval int16, done chan int) *Cache[T] + func NewCache[T any](cleanupInterval int16, done chan int) *Cache[T] + func (c *Cache[T]) Add(key string, value T, expirationSecond int64) error + func (c *Cache[T]) Delete(key string) + func (c *Cache[T]) Get(key string) (T, error) + func (c *Cache[T]) Set(key string, value T, expirationSecond int64) error + func (c *Cache[T]) StopCleanUp() + type CacheItem struct