Fixed the Max Memory Limit for the Embedded Redis Server

This commit is contained in:
Ali Dehghani
2019-10-30 00:44:25 +03:30
parent 18c6a1a0ab
commit 3d73ba4f8e
5 changed files with 5 additions and 5 deletions

View File

@@ -38,7 +38,7 @@ public class RedisKeyCommandsIntegrationTest {
@BeforeClass @BeforeClass
public static void startRedisServer() throws IOException { public static void startRedisServer() throws IOException {
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 256M").build(); redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 256M").build();
redisServer.start(); redisServer.start();
} }

View File

@@ -36,7 +36,7 @@ public class RedisTemplateListOpsIntegrationTest {
@BeforeClass @BeforeClass
public static void startRedisServer() throws IOException { public static void startRedisServer() throws IOException {
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 128M").build(); redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 128M").build();
redisServer.start(); redisServer.start();
} }

View File

@@ -38,7 +38,7 @@ public class RedisTemplateValueOpsIntegrationTest {
@BeforeClass @BeforeClass
public static void startRedisServer() throws IOException { public static void startRedisServer() throws IOException {
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 256M").build(); redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 256M").build();
redisServer.start(); redisServer.start();
} }

View File

@@ -33,7 +33,7 @@ public class RedisMessageListenerIntegrationTest {
@BeforeClass @BeforeClass
public static void startRedisServer() throws IOException { public static void startRedisServer() throws IOException {
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 256M").build(); redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 256M").build();
redisServer.start(); redisServer.start();
} }

View File

@@ -34,7 +34,7 @@ public class StudentRepositoryIntegrationTest {
@BeforeClass @BeforeClass
public static void startRedisServer() throws IOException { public static void startRedisServer() throws IOException {
redisServer = new RedisServerBuilder().port(6379).setting("maxheap 128M").build(); redisServer = new RedisServerBuilder().port(6379).setting("maxmemory 128M").build();
redisServer.start(); redisServer.start();
} }