[fix: bug] fix RedisCache bug
@@ -47,7 +47,8 @@ public final class RedisCache implements ICache {
*/
@Override
public boolean cacheData(final String key, final byte[] bytes, final long timeoutSeconds) {
- return Boolean.TRUE.equals(this.redisTemplate.opsForValue().set(key, bytes, Duration.ofSeconds(timeoutSeconds)).block());
+ this.redisTemplate.opsForValue().set(key, bytes, Duration.ofSeconds(timeoutSeconds)).subscribe();
+ return true;
}
/**
