Documentation ¶ Index ¶ type Cache func UseCache[Model any](prefix string, icache cache.ICache) *Cache[Model] func (c *Cache[Model]) Delete(key string) error func (c *Cache[Model]) Get(key string) (Model, bool) func (c *Cache[Model]) Set(key string, value Model, expiration time.Duration) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache[Model any] struct { // contains filtered or unexported fields } func UseCache ¶ func UseCache[Model any](prefix string, icache cache.ICache) *Cache[Model] func (*Cache[Model]) Delete ¶ func (c *Cache[Model]) Delete(key string) error func (*Cache[Model]) Get ¶ func (c *Cache[Model]) Get(key string) (Model, bool) func (*Cache[Model]) Set ¶ func (c *Cache[Model]) Set(key string, value Model, expiration time.Duration) error Source Files ¶ View all Source files caches.go Click to show internal directories. Click to hide internal directories.