Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MemCache ¶
type MemCache struct {
// contains filtered or unexported fields
}
MemCache is a simple LRU cache that stores values in memory. It is safe for concurrent use.
func NewMemCache ¶
NewMemCache initializes a MemCache. The minimum size is 1024. cleanerInterval specifies the interval that MemCache scans and discards expired values. If cleanerInterval <= 0, a default interval will be used.
Click to show internal directories.
Click to hide internal directories.