即使在配置stringredistemplate之后,SpringDataRedis也使用哈希而不是字符串

5tmbdcev  于 2021-06-08  发布在  Redis
关注(0)|答案(0)|浏览(249)

我想使用stringredistemplate和SpringDataRedis。即使将stringredistemplate配置为redistemplate bean,存储库也会创建哈希。

@Bean
  public RedisTemplate redisTemplate() {
    StringRedisTemplate template = new StringRedisTemplate(jedisConnectionFactory());

    return template;
  }

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题