diff --git a/mpaste/pom.xml b/mpaste/pom.xml
index 9ffa22b..a3a0257 100644
--- a/mpaste/pom.xml
+++ b/mpaste/pom.xml
@@ -31,6 +31,14 @@
org.springframework.boot
spring-boot-starter-data-jpa
+
+ org.springframework.boot
+ spring-boot-starter-websocket
+
+
+ org.springframework.boot
+ spring-boot-starter-data-redis
+
org.mariadb.jdbc
mariadb-java-client
@@ -60,6 +68,14 @@
1.1.1
compile
+
+ com.fasterxml.jackson.core
+ jackson-databind
+
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+
diff --git a/mpaste/src/main/java/net/miarma/backend/mpaste/config/RedisConfig.java b/mpaste/src/main/java/net/miarma/backend/mpaste/config/RedisConfig.java
new file mode 100644
index 0000000..52af625
--- /dev/null
+++ b/mpaste/src/main/java/net/miarma/backend/mpaste/config/RedisConfig.java
@@ -0,0 +1,27 @@
+package net.miarma.backend.mpaste.config;
+
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.connection.RedisConnectionFactory;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.serializer.RedisSerializer;
+
+@Configuration
+public class RedisConfig {
+
+ @Bean
+ public RedisTemplate redisTemplate(RedisConnectionFactory connectionFactory) {
+ RedisTemplate template = new RedisTemplate<>();
+ template.setConnectionFactory(connectionFactory);
+
+ RedisSerializer