Documentation ¶
Index ¶
- func SetLimit(v interface{}, limit uint)
- type LFU
- func (list *LFU) Cap() uint
- func (list *LFU) ClearHard()
- func (list *LFU) ClearSoft()
- func (list *LFU) ClearTableNils()
- func (list *LFU) ClearTables()
- func (list *LFU) CreateCacheableItem(content interface{}) *LFUItem
- func (list *LFU) Delete(id Snowflake)
- func (list *LFU) Efficiency() float64
- func (list *LFU) Get(id Snowflake) (ret *LFUItem, exists bool)
- func (list *LFU) RefreshAfterDiscordUpdate(item *LFUItem)
- func (list *LFU) Set(id Snowflake, newItem *LFUItem)
- func (list *LFU) Size() uint
- type LFUItem
- type Snowflake
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LFU ¶
func (*LFU) ClearTableNils ¶
func (list *LFU) ClearTableNils()
func (*LFU) ClearTables ¶
func (list *LFU) ClearTables()
func (*LFU) CreateCacheableItem ¶
CreateCacheableItem ...
func (*LFU) RefreshAfterDiscordUpdate ¶
RefreshAfterDiscordUpdate ...
Click to show internal directories.
Click to hide internal directories.