Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CacheAlger ¶
type CacheAlger interface { Lock() Unlock() RLock() RUnlock() Get(id Snowflake) (item CacheableItem, exists bool) Set(id Snowflake, new CacheableItem) Delete(id Snowflake) CreateCacheableItem(content interface{}) CacheableItem RefreshAfterDiscordUpdate(item CacheableItem) Efficiency() float64 }
CacheAlger a cache replacement algorithm interface
type CacheableItem ¶
type CacheableItem interface { Object() interface{} Set(v interface{}) }
CacheableItem an item that can be cached
Click to show internal directories.
Click to hide internal directories.