Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Memofier ¶
type Memofier struct { // Storage exposes the underlying cache of memoized results to manipulate as desired - for example, to Flush(). Storage *cache.Cache // contains filtered or unexported fields }
Memofier allows you to memoize function calls. Memofy is safe for concurrent use by multiple goroutines.
func NewMemofier ¶
NewMemofier creates a new Memofy with the configured expiry and cleanup policies. If desired, use cache.NoExpiration to cache values forever.
Click to show internal directories.
Click to hide internal directories.