Documentation ¶ Index ¶ type Cache func (e *Cache[K, V]) Close() error func (c *Cache[K, V]) Config() any func (c *Cache[K, V]) SetEntity() type Config func (c *Config[K, V]) Build() *ristretto.Cache[K, V] func (c *Config[K, V]) Init() func (c *Config[K, V]) InitBeforeInject() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache[K ristretto.Key, V any] struct { *ristretto.Cache[K, V] Conf Config[K, V] } func (*Cache[K, V]) Close ¶ func (e *Cache[K, V]) Close() error func (*Cache[K, V]) Config ¶ func (c *Cache[K, V]) Config() any func (*Cache[K, V]) SetEntity ¶ func (c *Cache[K, V]) SetEntity() type Config ¶ type Config[K ristretto.Key, V any] ristretto.Config[K, V] func (*Config[K, V]) Build ¶ func (c *Config[K, V]) Build() *ristretto.Cache[K, V] func (*Config[K, V]) Init ¶ added in v1.4.0 func (c *Config[K, V]) Init() func (*Config[K, V]) InitBeforeInject ¶ func (c *Config[K, V]) InitBeforeInject() Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.