spring-data-redis icon indicating copy to clipboard operation
spring-data-redis copied to clipboard

Why DefaultHashOperations in RedisTemplate not be cached? [DATAREDIS-1109]

Open spring-projects-issues opened this issue 5 years ago • 1 comments

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

spring-projects-issues avatar Feb 28 '20 06:02 spring-projects-issues

I feel confused too. Cache DefaultHashOperations cause any problem?

XeonWangYue avatar Feb 27 '23 03:02 XeonWangYue