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

redis.clients.jedis.gears.RedisGearsProtocol Maven / Gradle / Ivy

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

import redis.clients.jedis.args.Rawable;
import redis.clients.jedis.commands.ProtocolCommand;
import redis.clients.jedis.util.SafeEncoder;

@Deprecated
public class RedisGearsProtocol {

  @Deprecated
  public enum GearsCommand implements ProtocolCommand {

    @Deprecated TFUNCTION,
    @Deprecated TFCALL,
    @Deprecated TFCALLASYNC;

    private final byte[] raw;

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

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

  @Deprecated
  public enum GearsKeyword implements Rawable {

    CONFIG,
    REPLACE,
    LOAD,
    DELETE,
    LIST,
    WITHCODE,
    LIBRARY,
    VERBOSE;

    private final byte[] raw;

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy