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

redis.clients.jedis.json.commands.RedisJsonV1PipelineCommands Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis.json.commands;

import java.util.List;
import redis.clients.jedis.Response;
import redis.clients.jedis.json.JsonSetParams;
import redis.clients.jedis.json.Path;

/**
 * @deprecated RedisJSON (v1) support is deprecated.
 */
@Deprecated
public interface RedisJsonV1PipelineCommands {

  @Deprecated
  default Response jsonSetLegacy(String key, Object pojo) {
    return jsonSet(key, Path.ROOT_PATH, pojo);
  }

  @Deprecated
  default Response jsonSetLegacy(String key, Object pojo, JsonSetParams params) {
    return jsonSet(key, Path.ROOT_PATH, pojo, params);
  }

  @Deprecated
  Response jsonSet(String key, Path path, Object pojo);

  @Deprecated
  Response jsonSet(String key, Path path, Object pojo, JsonSetParams params);

  @Deprecated
  Response jsonMerge(String key, Path path, Object pojo);

  Response jsonGet(String key); // both ver

  @Deprecated
   Response jsonGet(String key, Class clazz);

  @Deprecated
  Response jsonGet(String key, Path... paths);

  @Deprecated
   Response jsonGet(String key, Class clazz, Path... paths);

  @Deprecated
  default  Response> jsonMGet(Class clazz, String... keys) {
    return jsonMGet(Path.ROOT_PATH, clazz, keys);
  }

  @Deprecated
   Response> jsonMGet(Path path, Class clazz, String... keys);

  Response jsonDel(String key); // both ver

  @Deprecated
  Response jsonDel(String key, Path path);

  @Deprecated
  Response jsonClear(String key); // no test

  @Deprecated
  Response jsonClear(String key, Path path);

  @Deprecated
  Response jsonToggle(String key, Path path);

  @Deprecated
  Response> jsonType(String key);

  @Deprecated
  Response> jsonType(String key, Path path);

  @Deprecated
  Response jsonStrAppend(String key, Object string);

  @Deprecated
  Response jsonStrAppend(String key, Path path, Object string);

  @Deprecated
  Response jsonStrLen(String key);

  @Deprecated
  Response jsonStrLen(String key, Path path);

  @Deprecated
  Response jsonNumIncrBy(String key, Path path, double value);

  @Deprecated
  Response jsonArrAppend(String key, Path path, Object... pojos);

  @Deprecated
  Response jsonArrIndex(String key, Path path, Object scalar);

  @Deprecated
  Response jsonArrInsert(String key, Path path, int index, Object... pojos);

  @Deprecated
  Response jsonArrPop(String key);

  @Deprecated
   Response jsonArrPop(String key, Class clazz);

  @Deprecated
  Response jsonArrPop(String key, Path path);

  @Deprecated
   Response jsonArrPop(String key, Class clazz, Path path);

  @Deprecated
  Response jsonArrPop(String key, Path path, int index);

  @Deprecated
   Response jsonArrPop(String key, Class clazz, Path path, int index);

  @Deprecated
  Response jsonArrLen(String key);

  @Deprecated
  Response jsonArrLen(String key, Path path);

  @Deprecated
  Response jsonArrTrim(String key, Path path, int start, int stop);
}