RecallMessageCacheStrategyConfiguration

Constructors

Types

Link copied to clipboard
object Companion
Link copied to clipboard
data class CustomProperties(val className: String, val properties: Map<String, String> = emptyMap()) : RecallMessageCacheStrategyConfiguration

代表为提供一个 CustomPropertiesMiraiRecallMessageCacheStrategy 的具体实现类型 className 来进行构建。

Link copied to clipboard

代表为使用 InvalidMiraiRecallMessageCacheStrategy , 即使用本质上不缓存的缓存策略。

Link copied to clipboard
data class MemoryLru(val groupMaxSize: Int = MemoryLruMiraiRecallMessageCacheStrategy.DEFAULT_GROUP_MAX_SIZE, val friendMaxSize: Int = MemoryLruMiraiRecallMessageCacheStrategy.DEFAULT_FRIEND_MAX_SIZE, val loadFactor: Float = MemoryLruMiraiRecallMessageCacheStrategy.DEFAULT_LOAD_FACTOR) : RecallMessageCacheStrategyConfiguration

代表为使用 MemoryLruMiraiRecallMessageCacheStrategy , 即使用基于内存的LRU缓存策略。

Functions

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard