public Double zScore(byte[] key, byte[] value) { try { if (isPipelined()) { pipeline(pipeline.zscore(key, value)); return null; } return SrpUtils.toDouble(client.zscore(key, value).data()); } catch (Exception ex) { throw convertSrpAccessException(ex); } }
@Test public void zscore() { rc.del(a("myzset")); eq(1, rc.zadd(a("myzset", "1", "one"))); eq("1", rc.zscore("myzset", "one")); }