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

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

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

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

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

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

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

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

  @Deprecated
  String jsonSetWithPlainString(String key, Path path, String string);

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

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

  Object jsonGet(String key); // both ver

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

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

  @Deprecated
  String jsonGetAsPlainString(String key, Path path);

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

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

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

  long jsonDel(String key); // both ver

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

  long jsonClear(String key); // no test

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

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

  @Deprecated
  Class jsonType(String key);

  @Deprecated
  Class jsonType(String key, Path path);

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

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

  @Deprecated
  Long jsonStrLen(String key);

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

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

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

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

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

  @Deprecated
  Object jsonArrPop(String key);

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

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

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

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

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

  @Deprecated
  Long jsonArrLen(String key);

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

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

  @Deprecated
  Long jsonObjLen(String key);

  @Deprecated
  Long jsonObjLen(String key, Path path);

  @Deprecated
  List jsonObjKeys(String key);

  @Deprecated
  List jsonObjKeys(String key, Path path);

  @Deprecated
  long jsonDebugMemory(String key);

  @Deprecated
  long jsonDebugMemory(String key, Path path);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy