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 0d1c8698..3b814e40 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 @@ -66,7 +66,8 @@ abstract class RedisCache protected constructor(cacheID: String) { } protected open suspend fun get(identifier: String): String? = coroutineScope { - return@coroutineScope jedis.get(cacheID + identifier) + val item = jedis.get(cacheID + identifier) + return@coroutineScope item.ifBlank { null } } protected open suspend fun get(identifier: Long): String? {