Versions in this module Expand all Collapse all v1 v1.6.65 Sep 23, 2024 v1.6.64 Sep 13, 2024 v1.6.4 Sep 13, 2024 Changes in this version + type Counter struct + AvgScan int + Hit int + Max int + Miss int + Size int + type DoubleKeyLRUCounter struct + AvgScan int + Hit int + Max int + MaxLongBucket int + MaxShortBucket int + Miss int + Size int + type U128LRU struct + func NewU128LRU(module string, hashSlots, capacity int, opts ...stats.OptionStatTags) *U128LRU + func NewU128LRUNoStats(module string, hashSlots, capacity int) *U128LRU + func (m *U128LRU) Add(key0, key1 uint64, value interface{}) + func (m *U128LRU) AddOrGet(key0, key1 uint64, value interface{}) *interface{} + func (m *U128LRU) Clear() + func (m *U128LRU) Close() error + func (m *U128LRU) Get(key0, key1 uint64, peek bool) (interface{}, bool) + func (m *U128LRU) GetCollisionChain() []byte + func (m *U128LRU) GetCounter() interface{} + func (m *U128LRU) ID() string + func (m *U128LRU) KeySize() int + func (m *U128LRU) NoStats() *U128LRU + func (m *U128LRU) Remove(key0, key1 uint64) + func (m *U128LRU) SetCollisionChainDebugThreshold(t int) + func (m *U128LRU) Size() int + func (m *U128LRU) Walk(callback walkCallback) + type U128U64DoubleKeyLRU struct + func NewU128U64DoubleKeyLRU(module string, hashSlots, relationHashSlots, capacity int, ...) *U128U64DoubleKeyLRU + func (m *U128U64DoubleKeyLRU) Add(longKey0, longKey1, shortKey uint64, value interface{}) + func (m *U128U64DoubleKeyLRU) AddByShortKey(longKey0s, longKey1s []uint64, shortKey uint64, values []interface{}) + func (m *U128U64DoubleKeyLRU) Clear() + func (m *U128U64DoubleKeyLRU) Get(longKey0, longKey1 uint64, peek bool) (interface{}, bool) + func (m *U128U64DoubleKeyLRU) GetCollisionChain() []byte + func (m *U128U64DoubleKeyLRU) GetCounter() interface{} + func (m *U128U64DoubleKeyLRU) ID() string + func (m *U128U64DoubleKeyLRU) KeySize() int + func (m *U128U64DoubleKeyLRU) NoStats() *U128U64DoubleKeyLRU + func (m *U128U64DoubleKeyLRU) PeekByShortKey(shortKey uint64) ([]interface{}, bool) + func (m *U128U64DoubleKeyLRU) Remove(longKey0, longKey1 uint64) + func (m *U128U64DoubleKeyLRU) RemoveByShortKey(shortKey uint64) int + func (m *U128U64DoubleKeyLRU) SetCollisionChainDebugThreshold(t int) + func (m *U128U64DoubleKeyLRU) Size() int + func (m *U128U64DoubleKeyLRU) Walk(callback func(longKey0, longKey1 uint64, value interface{})) + type U64DoubleKeyLRU struct + func NewU64DoubleKeyLRU(module string, hashSlots, relationHashSlots, capacity int, ...) *U64DoubleKeyLRU + func (m *U64DoubleKeyLRU) Add(key uint64, shortKey uint64, value interface{}) + func (m *U64DoubleKeyLRU) AddByShortKey(keys []uint64, shortKey uint64, values []interface{}) + func (m *U64DoubleKeyLRU) Clear() + func (m *U64DoubleKeyLRU) Get(key uint64, peek bool) (interface{}, bool) + func (m *U64DoubleKeyLRU) GetCollisionChain() []byte + func (m *U64DoubleKeyLRU) GetCounter() interface{} + func (m *U64DoubleKeyLRU) ID() string + func (m *U64DoubleKeyLRU) KeySize() int + func (m *U64DoubleKeyLRU) NoStats() *U64DoubleKeyLRU + func (m *U64DoubleKeyLRU) PeekByShortKey(key uint64) ([]interface{}, bool) + func (m *U64DoubleKeyLRU) Remove(key uint64) + func (m *U64DoubleKeyLRU) RemoveByShortKey(key uint64) int + func (m *U64DoubleKeyLRU) SetCollisionChainDebugThreshold(t int) + func (m *U64DoubleKeyLRU) Size() int + func (m *U64DoubleKeyLRU) Walk(callback func(key uint64, value interface{})) + type U64LRU struct + func NewU64LRU(module string, hashSlots, capacity int, opts ...stats.OptionStatTags) *U64LRU + func NewU64LRUNoStats(module string, hashSlots, capacity int) *U64LRU + func (m *U64LRU) Add(key uint64, value interface{}) + func (m *U64LRU) Clear() + func (m *U64LRU) Close() error + func (m *U64LRU) Get(key uint64, peek bool) (interface{}, bool) + func (m *U64LRU) GetCollisionChain() []byte + func (m *U64LRU) GetCounter() interface{} + func (m *U64LRU) ID() string + func (m *U64LRU) KeySize() int + func (m *U64LRU) NoStats() *U64LRU + func (m *U64LRU) Remove(key uint64) + func (m *U64LRU) SetCollisionChainDebugThreshold(t int) + func (m *U64LRU) Size() int + func (m *U64LRU) Walk(callback func(key uint64, value interface{}))