Documentation ¶
Index ¶
- type LFU
- func (s *LFU) Clear()
- func (s *LFU) Close()
- func (s *LFU) Copy() internal.StatsCacheInner
- func (s *LFU) Cost() int64
- func (s *LFU) Del(tblID int64)
- func (s *LFU) Get(tid int64) (*statistics.Table, bool)
- func (s *LFU) Len() int
- func (s *LFU) Put(tblID int64, tbl *statistics.Table) bool
- func (s *LFU) SetCapacity(maxCost int64)
- func (s *LFU) Values() []*statistics.Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LFU ¶
type LFU struct {
// contains filtered or unexported fields
}
LFU is a LFU based on the ristretto.Cache
func (*LFU) Get ¶
func (s *LFU) Get(tid int64) (*statistics.Table, bool)
Get implements statsCacheInner
func (*LFU) Put ¶
func (s *LFU) Put(tblID int64, tbl *statistics.Table) bool
Put implements statsCacheInner
func (*LFU) SetCapacity ¶
SetCapacity implements statsCacheInner
Click to show internal directories.
Click to hide internal directories.