Examples of Slowlog


Examples of redis.clients.util.Slowlog

  jedis.set("foo2", "bar2");

  List<Slowlog> reducedLog = jedis.slowlogGet(1);
  assertEquals(1, reducedLog.size());

  Slowlog log = reducedLog.get(0);
  assertTrue(log.getId() > 0);
  assertTrue(log.getTimeStamp() > 0);
  assertTrue(log.getExecutionTime() > 0);
  assertNotNull(log.getArgs());

  List<byte[]> breducedLog = jedis.slowlogGetBinary(1);
  assertEquals(1, breducedLog.size());

  List<Slowlog> log1 = jedis.slowlogGet();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.