RedisFuture<List<KeyValue<String, String>>> future = redisStatsConnection.hmget(key, 10);
if (!future.await(500, TimeUnit.MILLISECONDS)) {
....
}
I used Redis with Java and Lettuce. For RedisAdvancedClusterAsyncCommands.hmget
, I am trying to add a timeout for it. I think it should be done within 10 milliseconds or so, but it always times out till I am keeping increasing the number.
Could I know what is the average timeout for Redis? or is there any other suggestion?