Documentation
¶
Index ¶
- type Cache
- func (c *Cache[V]) Clear()
- func (c *Cache[V]) Delete(key string)
- func (c *Cache[V]) GetOrLoad(key string, getData func() (V, error), timeout time.Duration) (value V)
- func (c *Cache[V]) GetOrLoadE(key string, getData func() (V, error), timeout time.Duration) (V, error)
- func (c *Cache[V]) Set(key string, value V, timeout time.Duration)
- func (c *Cache[V]) UpdateIfPresent(key string, update func(V) V, timeout time.Duration) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.