diff --git a/src/main/kotlin/main/utils/database/mongodb/cache/redis/RedisCache.kt b/src/main/kotlin/main/utils/database/mongodb/cache/redis/RedisCache.kt index 3b814e40..b3e64a82 100644 --- a/src/main/kotlin/main/utils/database/mongodb/cache/redis/RedisCache.kt +++ b/src/main/kotlin/main/utils/database/mongodb/cache/redis/RedisCache.kt @@ -67,7 +67,7 @@ abstract class RedisCache protected constructor(cacheID: String) { protected open suspend fun get(identifier: String): String? = coroutineScope { val item = jedis.get(cacheID + identifier) - return@coroutineScope item.ifBlank { null } + return@coroutineScope if (item == "nil") null else item } protected open suspend fun get(identifier: Long): String? {