Skip to main content

Redis

JedisDataException ERR unknown command CONFIG

·93 words·1 min
Error # While trying to setup Azure Cache for Redis as spring session store, I encountered following exception: .JedisDataException: ERR unknown command CONFIG, with args beginning with: get, notify-keyspace-events": 1, Fix # Found the solution in spring-session-gh-issue Kotlin @Configuration class HttpSessionConfig() { companion object { // another solution could be to enable notify-keyspace-events for redis @Bean fun configureRedisAction(): ConfigureRedisAction { return ConfigureRedisAction.NO_OP } } } Java @Configuration class HttpSessionConfig() { // another solution could be to enable notify-keyspace-events for redis @Bean public static ConfigureRedisAction configureRedisAction() { return ConfigureRedisAction.NO_OP; } } Links # spring-session-gh-issue