update debug command

This commit is contained in:
Jonathan Leibiusky
2011-01-20 11:36:17 -03:00
parent 72d1531c39
commit a13aff5421
2 changed files with 1 additions and 15 deletions

View File

@@ -23,21 +23,9 @@ public class DebugParams {
return debugParams; return debugParams;
} }
public static DebugParams SWAPIN(String key) {
DebugParams debugParams = new DebugParams();
debugParams.command = new String[] { "SWAPIN", key };
return debugParams;
}
public static DebugParams RELOAD() { public static DebugParams RELOAD() {
DebugParams debugParams = new DebugParams(); DebugParams debugParams = new DebugParams();
debugParams.command = new String[] { "RELOAD" }; debugParams.command = new String[] { "RELOAD" };
return debugParams; return debugParams;
} }
public static DebugParams SWAPOUT(String key) {
DebugParams debugParams = new DebugParams();
debugParams.command = new String[] { "SWAPOUT", key };
return debugParams;
}
} }

View File

@@ -91,8 +91,6 @@ public class ControlCommandsTest extends JedisCommandTestBase {
jedis.set("foo", "bar"); jedis.set("foo", "bar");
String resp = jedis.debug(DebugParams.OBJECT("foo")); String resp = jedis.debug(DebugParams.OBJECT("foo"));
assertNotNull(resp); assertNotNull(resp);
resp = jedis.debug(DebugParams.SWAPIN("foo"));
assertNotNull(resp);
resp = jedis.debug(DebugParams.RELOAD()); resp = jedis.debug(DebugParams.RELOAD());
assertNotNull(resp); assertNotNull(resp);
} }