update debug command
This commit is contained in:
@@ -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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,11 +88,9 @@ public class ControlCommandsTest extends JedisCommandTestBase {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void debug() {
|
public void debug() {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user