All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.args.ListDirection Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis.args;

import redis.clients.jedis.util.SafeEncoder;

/**
 * Direction for {@code LMOVE} and {@code BLMOVE} command.
 */
public enum ListDirection implements Rawable {

  LEFT, RIGHT;

  private final byte[] raw;

  private ListDirection() {
    raw = SafeEncoder.encode(name());
  }

  @Override
  public byte[] getRaw() {
    return raw;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy