hunk.code_window:         <dependency>
               <groupId>com.appsmith</groupId>
               <artifactId>interfaces</artifactId>
               <version>1.0-SNAPSHOT</version>
           </dependency>
           <dependency>
               <groupId>org.springframework.boot</groupId>
               <artifactId>spring-boot-starter-test</artifactId>
               <scope>test</scope>
           </dependency>
  
hunk.labels: keep keep keep keep keep replace keep keep keep keep keep
hunk.after_edit: 		<!-- Plugin dependencies -->
   		<dependency>
   			<groupId>org.pf4j</groupId>
   			<artifactId>pf4j-spring</artifactId>
   			<version>0.5.0</version>
   		</dependency>
  
hunk.file_path: app/server/appsmith-server/pom.xml
hunk.type: replace
file: package com.appsmith.server.configurations;
  
  import lombok.extern.slf4j.Slf4j;
  import org.springframework.context.annotation.Bean;
  import org.springframework.context.annotation.Configuration;
  import org.springframework.data.redis.connection.ReactiveRedisConnectionFactory;
  import org.springframework.data.redis.core.ReactiveRedisOperations;
  import org.springframework.data.redis.core.ReactiveRedisTemplate;
  import org.springframework.data.redis.listener.ChannelTopic;
  import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
  import org.springframework.data.redis.serializer.RedisSerializationContext;
  import org.springframework.data.redis.serializer.StringRedisSerializer;
  
  @Configuration
  @Slf4j
  public class RedisConfig {
  
      @Bean
      public ReactiveRedisTemplate<String, String> reactiveRedisTemplate(ReactiveRedisConnectionFactory factory) {
          return new ReactiveRedisTemplate<>(factory, RedisSerializationContext.string());
      }
  
      /**
       * This is the topic to which we will publish & subscribe to. We can have multiple topics based on the messages
       * that we wish to broadcast. Starting with a single one for now.
       * @return
       */
      @Bean
      ChannelTopic topic() {
          return new ChannelTopic("appsmith:queue");
      }
  
      @Bean
      ReactiveRedisOperations<String, String> reactiveRedisOperations(ReactiveRedisConnectionFactory factory) {
          Jackson2JsonRedisSerializer<String> serializer = new Jackson2JsonRedisSerializer<>(String.class);
  
          RedisSerializationContext.RedisSerializationContextBuilder<String, String> builder =
                  RedisSerializationContext.newSerializationContext(new StringRedisSerializer());
  
          RedisSerializationContext<String, String> context = builder.value(serializer).build();
  
          return new ReactiveRedisTemplate<>(factory, context);
      }
  }
  