Versions in this module Expand all Collapse all v0 v0.0.1 Sep 19, 2024 Changes in this version + type Cache struct + func NewCache(size int, tag string) *Cache + func (c *Cache) Clear() + func (c *Cache) DeleteItem(key string) + func (c *Cache) GetAllItems() []*CacheItem + func (c *Cache) GetItem(key string) (*CacheItem, bool) + func (c *Cache) GetItems(pageNum int, pageSize int) []*CacheItem + func (c *Cache) GetMaxSize() int + func (c *Cache) GetTotalItems() int + func (c *Cache) SetItem(key string, value interface{}) + type CacheItem struct + Key string + Value interface{}