tweak chat cache
parent
99ab44b585
commit
486fc19047
|
@ -33,9 +33,8 @@ final class ChatApi(
|
||||||
// only use for public, multi-user chats - tournaments, simuls
|
// only use for public, multi-user chats - tournaments, simuls
|
||||||
object cached {
|
object cached {
|
||||||
|
|
||||||
private val cache = cacheApi[Chat.Id, UserChat](128, "chat.user") {
|
private val cache = cacheApi[Chat.Id, UserChat](1024, "chat.user") {
|
||||||
_.expireAfterAccess(1 minute)
|
_.expireAfterWrite(1 minute).buildAsyncFuture(find)
|
||||||
.buildAsyncFuture(find)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def invalidate = cache.invalidate _
|
def invalidate = cache.invalidate _
|
||||||
|
|
Loading…
Reference in New Issue