Documentation ¶
Overview ¶
Package cache implements a simple in-memory cache.
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
}
An in-memory cache.
func NewWithTimeout ¶ added in v0.3.2
NewWithTimeout creates a new cache with a specific timeout for the regular clean up and returns it.
func (*Cache) Close ¶ added in v0.3.2
func (c *Cache) Close()
Close closes the cache and frees allocated resources.
Click to show internal directories.
Click to hide internal directories.