public boolean containsKey(byte[] bytes) { return containsKey(new BytesKey(bytes)); }
private BytesKeyObjectMap<ZSetEntry> getMap() { if (map == null) { map = new BytesKeyObjectMap<ZSetEntry>(); } return map; }
@Override public boolean equals(Object o) { if (o instanceof BytesKey) { BytesKey other = (BytesKey) o; return hashCode == other.hashCode && equals(bytes, other.bytes); } return false; }
/** * Remove all keys from the current database * Server * * @return StatusReply */ @Override public StatusReply flushdb() throws RedisException { data.clear(); return OK; }
public static byte[] numToBytes(long value, boolean withCRLF) { if (value >= 0 && value < NUM_MAP_LENGTH) { int index = (int) value; return withCRLF ? numMapWithCRLF[index] : numMap[index]; } else if (value == -1) { return withCRLF ? NEG_ONE_WITH_CRLF : NEG_ONE; } return convert(value, withCRLF); }
/** * Remove all keys from all databases * Server * * @return StatusReply */ @Override public StatusReply flushall() throws RedisException { data.clear(); return OK; }
/** * Remove all keys from all databases * Server * * @return StatusReply */ @Override public StatusReply flushall() throws RedisException { data.clear(); return OK; }
/** * Remove all keys from the current database * Server * * @return StatusReply */ @Override public StatusReply flushdb() throws RedisException { data.clear(); return OK; }