CacheUtility

constructor(bot: Bot, updateCache: suspend (bot: Bot) -> Map<K, D>, entityFactory: (bot: Bot, data: D) -> V)(source)

Parameters

K

缓存键的类型

V

实体类型,必须继承自 AbstractEntity