Documentation
¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Add(key string, value any, duration time.Duration) (bool, error)
- func (c *Cache) Get(key string) (any, error)
- func (c *Cache) Keys(prefix string) []string
- func (c *Cache) Pop(key string) (any, error)
- func (c *Cache) Remove(keys ...string) error
- func (c *Cache) Set(key string, value any, duration time.Duration) error
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOperationTimeout = 10 * time.Second
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.