redis.clients.jedis.json.JsonProtocol Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jedis_preview Show documentation
Show all versions of jedis_preview Show documentation
Jedis is a blazingly small and sane Redis java client.
The newest version!
package redis.clients.jedis.json;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;
public class JsonProtocol {
public enum JsonCommand implements ProtocolCommand {
DEL("JSON.DEL"),
GET("JSON.GET"),
MGET("JSON.MGET"),
MERGE("JSON.MERGE"),
SET("JSON.SET"),
TYPE("JSON.TYPE"),
STRAPPEND("JSON.STRAPPEND"),
STRLEN("JSON.STRLEN"),
NUMINCRBY("JSON.NUMINCRBY"),
ARRAPPEND("JSON.ARRAPPEND"),
ARRINDEX("JSON.ARRINDEX"),
ARRINSERT("JSON.ARRINSERT"),
ARRLEN("JSON.ARRLEN"),
ARRPOP("JSON.ARRPOP"),
ARRTRIM("JSON.ARRTRIM"),
CLEAR("JSON.CLEAR"),
TOGGLE("JSON.TOGGLE"),
OBJKEYS("JSON.OBJKEYS"),
OBJLEN("JSON.OBJLEN"),
DEBUG("JSON.DEBUG"),
RESP("JSON.RESP");
private final byte[] raw;
private JsonCommand(String alt) {
raw = SafeEncoder.encode(alt);
}
@Override
public byte[] getRaw() {
return raw;
}
}
}