Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InMemTTL ¶
type InMemTTL[K comparable, V any] struct { sync.Mutex // contains filtered or unexported fields }
InMemTTL implements a simple TTLed cache in memory. It is concurrency safe.
func NewInMemTTL ¶
NewInMemTTL creates a new TTLed cache.
func (*InMemTTL[K, V]) Purge ¶
func (c *InMemTTL[K, V]) Purge()
Purge removes all entries from the cache.
type OnDisk ¶
type OnDisk struct {
// contains filtered or unexported fields
}
OnDisk is a simple on disk cache.
Click to show internal directories.
Click to hide internal directories.