package
Version:
v0.0.0-...-54a3692
Opens a new window with list of versions in this module.
Published: May 1, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Cache stores the internal state.
New creates an instance based on expiration and cleanup interval.
ResponseChan opens or returns channel for the cache response.
type Response struct {
Value interface{}
Error error
}
Response stores value and/or error returned by the channel.
Retriever is a function to retrieve value not already cached.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.