Skip to content

Commit

Permalink
fix: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyun397 committed Feb 26, 2024
1 parent 65f4937 commit f873949
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import com.google.protobuf.gradle.protobuf
import com.google.protobuf.gradle.protoc
import org.gradle.kotlin.dsl.invoke

val grpcVersion = "1.44.1"
val grpcKotlinVersion = "1.2.1"
val grpcVersion = "1.61.1"
val grpcKotlinVersion = "1.4.1"
val protobufVersion = "3.19.4"

plugins {
Expand Down Expand Up @@ -42,7 +42,7 @@ protobuf {
artifact = "io.grpc:protoc-gen-grpc-java:$grpcVersion"
}
id("grpckt") {
artifact = "io.grpc:protoc-gen-grpc-kotlin:$grpcKotlinVersion:jdk7@jar"
artifact = "io.grpc:protoc-gen-grpc-kotlin:$grpcKotlinVersion:jdk8@jar"
}
}
generateProtoTasks {
Expand Down
10 changes: 5 additions & 5 deletions core/src/main/kotlin/core/database/LocalCaches.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,32 @@ import com.google.common.cache.CacheBuilder
import core.assets.*
import core.database.entities.Announce
import core.interact.i18n.Language
import java.time.Duration
import java.util.*
import java.util.concurrent.TimeUnit

data class LocalCaches(
val guildProfileUidCache: Cache<GuildUid, Guild> = CacheBuilder
.newBuilder()
.maximumSize(1000)
.expireAfterAccess(Duration.ofDays(1))
.expireAfterAccess(1, TimeUnit.DAYS)
.build(),

val userProfileUidCache: Cache<UserUid, User> = CacheBuilder
.newBuilder()
.maximumSize(1000)
.expireAfterAccess(Duration.ofHours(6))
.expireAfterAccess(6, TimeUnit.HOURS)
.build(),

val guildProfileGivenIdCache: Cache<GuildId, Guild> = CacheBuilder
.newBuilder()
.maximumSize(1000)
.expireAfterAccess(Duration.ofDays(1))
.expireAfterAccess(1, TimeUnit.DAYS)
.build(),

val userProfileGivenIdCache: Cache<UserId, User> = CacheBuilder
.newBuilder()
.maximumSize(1000)
.expireAfterAccess(Duration.ofHours(6))
.expireAfterAccess(6, TimeUnit.HOURS)
.build(),

var announceCache: SortedMap<Int, Map<Language, Announce>> = sortedMapOf()
Expand Down

0 comments on commit f873949

Please sign in to comment.