Cache

constructor(maxCountEachType: Int = 10, timeout: Int)

Parameters

maxCountEachType

每种类型最多缓存条数, 超出时会清除最早的缓存

timeout

缓存过期时间(毫秒), 默认为30秒