Documentation ¶ Index ¶ type Cache func NewCache(_ config.Type) (*Cache, error) func (c *Cache) Del(key string) func (c *Cache) Get(key string) (any, bool) func (c *Cache) Set(key string, value any, cost int64) bool func (c *Cache) SetWithTTL(key string, value any, cost int64, ttl time.Duration) bool func (c *Cache) Wait() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ added in v0.31.1 type Cache struct { // contains filtered or unexported fields } var Instance *Cache func NewCache ¶ added in v0.31.1 func NewCache(_ config.Type) (*Cache, error) func (*Cache) Del ¶ added in v0.31.1 func (c *Cache) Del(key string) func (*Cache) Get ¶ added in v0.31.1 func (c *Cache) Get(key string) (any, bool) func (*Cache) Set ¶ added in v0.31.1 func (c *Cache) Set(key string, value any, cost int64) bool func (*Cache) SetWithTTL ¶ added in v0.31.1 func (c *Cache) SetWithTTL(key string, value any, cost int64, ttl time.Duration) bool func (*Cache) Wait ¶ added in v0.31.1 func (c *Cache) Wait() Source Files ¶ View all Source files cache.go Click to show internal directories. Click to hide internal directories.