redis.clients.jedis.gears.RedisGearsProtocol 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.gears;
import redis.clients.jedis.args.Rawable;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;
public class RedisGearsProtocol {
public enum GearsCommand implements ProtocolCommand {
TFUNCTION,
TFCALL,
TFCALLASYNC;
private final byte[] raw;
private GearsCommand() {
this.raw = SafeEncoder.encode(name());
}
@Override
public byte[] getRaw() {
return raw;
}
}
public enum GearsKeyword implements Rawable {
CONFIG,
REPLACE,
LOAD,
DELETE,
LIST,
WITHCODE,
LIBRARY,
VERBOSE;
private final byte[] raw;
private GearsKeyword() {
this.raw = SafeEncoder.encode(name());
}
@Override
public byte[] getRaw() {
return raw;
}
}
}