Skip to content

spring-data-redis set > 0 always execute "SELECT" before any command #10540

Closed
@abccbaandy

Description

@abccbaandy

spring boot version : 1.5.7.RELEASE

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions