Closed
Description
abccbaandy opened DATAREDIS-714 and commented
properties :
spring.redis.database=3
code :
HashOperations<String, String, String> hashOperations = redisTemplate.opsForHash();
Map<String, String> map = hashOperations.entries("2330");
redis monitor :
"SELECT" "3"
"HGETALL" "1234"
"SELECT" "0"
it should be only this, isn't it?
"HGETALL" "1234"
I submit this issue to spring boot few days before, but maybe here is better place to submit this issue?
spring-projects/spring-boot#10540
Affects: 1.8.7 (Ingalls SR7)
Issue Links:
-
DATAREDIS-244 Select db index maybe cause resource wasted when user only use one db index larger than 0
-
DATAREDIS-10 JedisConnection may fail to select database
-
DATAREDIS-790 Backport JedisConnection always executes SELECT via RedisTemplate
Referenced from: pull request #291
Backported to: 2.0.3 (Kay SR3)