Skip to main content
  1. How To/

JedisDataException ERR unknown command CONFIG

·93 words·1 min
Ravi Singh
Author
Ravi Singh
Software engineer with 15+ years building backend systems and cloud platforms across fintech, automotive, and academia. I write about the things I build, debug, and learn — so I don’t forget them.
Table of Contents

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#


Discussion