redis.clients.jedis.args.SaveMode 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.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;
}
}