package com.sohu.cache.redis.util;

import redis.clients.jedis.util.SafeEncoder;

import java.util.Locale;

public enum Keyword {
    AGGREGATE, ALPHA, ASC, BY, DESC, GET, LIMIT, MESSAGE, NO, NOSORT, PMESSAGE, PSUBSCRIBE,
    PUNSUBSCRIBE, OK, ONE, QUEUED, SET, STORE, SUBSCRIBE, UNSUBSCRIBE, WEIGHTS, WITHSCORES,
    RESETSTAT, REWRITE, RESET, FLUSH, EXISTS, LOAD, KILL, LEN, REFCOUNT, ENCODING, IDLETIME,
    GETNAME, SETNAME, LIST, MATCH, COUNT, PING, PONG, UNLOAD, REPLACE, KEYS, PAUSE, DOCTOR,
    BLOCK, NOACK, STREAMS, KEY, CREATE, MKSTREAM, SETID, DESTROY, DELCONSUMER, MAXLEN, GROUP,
    IDLE, TIME, RETRYCOUNT, FORCE, LATEST, HISTORY, GRAPH, USAGE, STATS, PURGE, TRACKING, GETREDIR,
    ID, ON, OFF, STREAM, GROUPS, CONSUMERS, HELP, FREQ,
    SETUSER, GETUSER, DELUSER, WHOAMI, CAT, GENPASS, USERS;

    public final byte[] raw;

    Keyword() {
      raw = SafeEncoder.encode(this.name().toLowerCase(Locale.ENGLISH));
    }
  }