Skip to content

Instantly share code, notes, and snippets.

@Sachin-Kottarathodi
Last active April 24, 2020 06:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sachin-Kottarathodi/567ffbd3ef24f2682f90d8f78f70841e to your computer and use it in GitHub Desktop.
Save Sachin-Kottarathodi/567ffbd3ef24f2682f90d8f78f70841e to your computer and use it in GitHub Desktop.
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;
public enum CustomCommand implements ProtocolCommand {
CFEXISTS("CF.EXISTS"),
CFDEL("CF.DEL");
private final byte[] raw;
Custom(String command) {
this.raw = SafeEncoder.encode(command);
}
public byte[] getRaw() {
return this.raw;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment