Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache represents simple in-memory key/value store that can be persisted
func New ¶
New instantiates new Cache
- name is the name of the cache file
- maxAge controls amount of seconds after which cache returns no entry even though an old one exists (-1 disables aging, 0 disables caching)
Click to show internal directories.
Click to hide internal directories.