Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

Redis Insight shows keys with their doublequotes when using a Spring App

$
0
0

Yo,

I was using a redis client in node js with Redis insight and everything was smooth. Now I'm trying a Spring App with Jedis however every key I insert is surrounded by doublequotes which makes the Tree view feature of Redis insight to not work.

Here is my template config:

    @Bean    public RedisTemplate<String, Object> redisTemplate(@Nonnull RedisConnectionFactory redisConnectionFactory) {        RedisTemplate<String, Object> template = new RedisTemplate<>();        template.setConnectionFactory(redisConnectionFactory);        template.setDefaultSerializer(new GenericJackson2JsonRedisSerializer());        return template;    }

I thought maybe something was wrong with the serializer, so I even tried something like this

template.setStringSerializer(new GenericToStringSerializer<>(String.class));

However this doesn't seem a serializer issue since I checked the bytes and everything looks fine.

Searched Redis Insight settings for a little bit and couldn't find anything, any ideas?

Using Spring and Jedis

Same app using node redis


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>