Uploaded image for project: 'Spring Data Redis'
  1. Spring Data Redis
  2. DATAREDIS-714

JedisConnection always executes SELECT via RedisTemplate

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.8.7 (Ingalls SR7)
    • Component/s: Jedis Driver
    • Labels:
      None
    • Environment:
      spring boot 1.5.7

      Description

      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?
      https://github.com/spring-projects/spring-boot/issues/10540

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              mp911de Mark Paluch
              Reporter:
              abccbaandy abccbaandy
              Last updater:
              kyleyu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: