File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
bukkit/src/main/kotlin/io/wdsj/asw/bukkit/util/cache Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11package io.wdsj.asw.bukkit.util.cache
22
3- import com.github.benmanes.caffeine .cache.Cache
4- import com.github.benmanes.caffeine. cache.Caffeine
3+ import com.google.common .cache.Cache
4+ import com.google.common. cache.CacheBuilder
55import io.wdsj.asw.bukkit.AdvancedSensitiveWords.settingsManager
66import io.wdsj.asw.bukkit.setting.PluginSettings
77import java.util.concurrent.TimeUnit
@@ -47,7 +47,7 @@ object BookCache {
4747
4848 @JvmStatic
4949 fun initialize () {
50- cache = Caffeine .newBuilder()
50+ cache = CacheBuilder .newBuilder()
5151 .maximumSize(
5252 settingsManager.getProperty(PluginSettings .BOOK_MAXIMUM_CACHE_SIZE ).toLong()
5353 )
@@ -63,4 +63,4 @@ object BookCache {
6363 * Inner class to encapsulate the processed book content and its list of sensitive words.
6464 */
6565 private data class BookCacheEntry (val processedContent : String , val sensitiveWordList : List <String >)
66- }
66+ }
You can’t perform that action at this time.
0 commit comments