Documentation ¶
Index ¶
Constants ¶
View Source
const (
// LruBaseSize defines LRU size
LruBaseSize = 128
)
Variables ¶
View Source
var ( // ErrUnexpectedType happens on non expected type ErrUnexpectedType = errors.New("unexpected type") )
Functions ¶
This section is empty.
Types ¶
type LruCache ¶
type LruCache struct {
// contains filtered or unexported fields
}
LruCache defines an LRU cache with expiration
func NewLRUCache ¶
NewLRUCache instantiates LRU cache
Click to show internal directories.
Click to hide internal directories.