Documentation ¶
Overview ¶
Package resultcache contains a cache for filtering results.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[T any] struct { // contains filtered or unexported fields }
Cache is a wrapper around gcache.Cache to simplify rare error handling.
func (*Cache[T]) Clear ¶
func (c *Cache[T]) Clear()
Clear clears the cache. If c is nil, nothing is done.
func (*Cache[T]) Get ¶
Get returns the cached result, if any. If c is nil, Get returns a zero T and false.
Click to show internal directories.
Click to hide internal directories.