Open zlp1992 opened 1 year ago
If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal sample that reproduces the problem.
If you would like us to spend some time helping you to diagnose the problem, please spend some time describing it and, ideally, providing a minimal sample that reproduces the problem.
Hi, we use spring-boot-starter-data-redis(version 2.6.6) and all with default config. we use SpringTemplate
public <T> T getCacheObject(final String key) {
ValueOperations<String, T> operation = redisTemplate.opsForValue();
return operation.get(key);
}
but sometime the time spend on method getCacheObject cost almost 1 seconds(through from trace system). still have no idea about or to reproduces the problem.
as we can see from pinpoint the gap of AbstractRedisAsyncCommands
is high
By the way. if using redis cluster, whether there is only one native shared connection for all node of the cluster or one native shared connection for one node in the cluster?
I'm using spring-data-redis and lettuce in redis cluster. here is the code:
and after debug, factory is:
but sometimes,
redisTemplate.opsForValue().get
cost high, is there any ideas?