spring-data-redis
spring-data-redis copied to clipboard
Why DefaultHashOperations in RedisTemplate not be cached? [DATAREDIS-1109]
Xiaolong Zuo opened DATAREDIS-1109 and commented
Why DefaultHashOperations in RedisTemplate not be cached?
I found DefaultHashOperations is thread-safe.
Details see the code in RedisTemplate below.
public <HK, HV> HashOperations<K, HK, HV> opsForHash() {
return new DefaultHashOperations<>(this);
}
No further details from DATAREDIS-1109
I feel confused too. Cache DefaultHashOperations cause any problem?