Last active
April 24, 2020 06:15
-
-
Save Sachin-Kottarathodi/567ffbd3ef24f2682f90d8f78f70841e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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