Documentation
¶
Index ¶
- Variables
- type Cache
- func (c *Cache) Add(key string, value any, ttl time.Duration) (bool, error)
- func (c *Cache) Close() 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, ttl time.Duration) error
- type Option
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.