memoryLru

fun memoryLru(groupMaxSize: Int = MemoryLruMiraiRecallMessageCacheStrategy.DEFAULT_GROUP_MAX_SIZE, friendMaxSize: Int = MemoryLruMiraiRecallMessageCacheStrategy.DEFAULT_FRIEND_MAX_SIZE, loadFactor: Float = MemoryLruMiraiRecallMessageCacheStrategy.DEFAULT_LOAD_FACTOR): RecallMessageCacheStrategyConfiguration(source)

得到 MemoryLru

Parameters

groupMaxSize

缓存消息的最大上限, 会根据 loadFactor 计算为最终的初始化容量

friendMaxSize

缓存好友消息的最大上限, 会根据 loadFactor 计算为最终的初始化容量

loadFactor

内部哈希表所使用的负载因子