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

redis.clients.jedis.util.JedisClusterHashTagUtil Maven / Gradle / Ivy

package redis.clients.jedis.util;

/**
 * Holds various methods/utilities to manipulate and parse redis hash-tags. See Cluster-Spec : Keys hash tags
 *
 * @deprecated Use {@link JedisClusterHashTag}.
 */
@Deprecated
public final class JedisClusterHashTagUtil {

  private JedisClusterHashTagUtil() {
    throw new InstantiationError("Must not instantiate this class");
  }

  /**
   * @deprecated Use {@link JedisClusterHashTag#getHashTag(java.lang.String)}.
   */
  @Deprecated
  public static String getHashTag(String key) {
    return JedisClusterHashTag.getHashTag(key);
  }

  /**
   * @deprecated Use {@link JedisClusterHashTag#isClusterCompliantMatchPattern(byte[])}.
   */
  @Deprecated
  public static boolean isClusterCompliantMatchPattern(byte[] matchPattern) {
    return JedisClusterHashTag.isClusterCompliantMatchPattern(matchPattern);
  }

  /**
   * @deprecated Use {@link JedisClusterHashTag#isClusterCompliantMatchPattern(java.lang.String)}.
   */
  @Deprecated
  public static boolean isClusterCompliantMatchPattern(String matchPattern) {
    return JedisClusterHashTag.isClusterCompliantMatchPattern(matchPattern);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy