Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LFUCache ¶
type LFUCache struct {
// contains filtered or unexported fields
}
LFUCache is a least frequently used cache
func NewLFUCache ¶
NewLFUCache returns a LFUCache with the given size
type MockCache ¶
type MockCache struct {
// contains filtered or unexported fields
}
MockCache stores up to size elements, randomly evicting when size is reached
func NewMockCache ¶
NewMockCache returns a MockCache with the given size
Click to show internal directories.
Click to hide internal directories.