Documentation ¶
Overview ¶
Package lruttl implements an LRU cache with TTL
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
}
func New ¶
New creates a new Cache. If maxEntries is zero, the cache has no limit. if expiry is zero, records do not expire.
type Key ¶
type Key interface{}
A Key may be any value that is comparable. See http://golang.org/ref/spec#Comparison_operators
Click to show internal directories.
Click to hide internal directories.