-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHUTDOWN with optional modifier (#2544)
- Loading branch information
Showing
4 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package redis.clients.jedis.args; | ||
|
||
import redis.clients.jedis.util.SafeEncoder; | ||
|
||
public enum SaveMode implements Rawable { | ||
|
||
/** | ||
* Prevent a DB saving operation even if one or more save points are configured. | ||
*/ | ||
NOSAVE, | ||
|
||
/** | ||
* Force a DB saving operation even if no save points are configured. | ||
*/ | ||
SAVE; | ||
|
||
private final byte[] raw; | ||
|
||
private SaveMode() { | ||
raw = SafeEncoder.encode(name()); | ||
} | ||
|
||
@Override | ||
public byte[] getRaw() { | ||
return raw; | ||
} | ||
} |
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