Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InsertStrategy ¶
type InsertStrategy int
const ( InsertFront InsertStrategy = iota InsertAverage )
type LruList ¶
type LruList struct {
// contains filtered or unexported fields
}
func NewWithList ¶
func NewWithList(updateInterval time.Duration, insertStrategy InsertStrategy, list []interface{}) *LruList
func (*LruList) DestroyListCopy ¶
DestroyListCopy should be called when the list copy is no longer used
func (*LruList) GetListCopy ¶
GetListCopy should be called when you want to traverse the list
Click to show internal directories.
Click to hide internal directories.