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

com.redis.om.spring.ops.json.JSONOperations Maven / Gradle / Ivy

package com.redis.om.spring.ops.json;

import java.util.List;

import org.springframework.lang.Nullable;

import com.redislabs.modules.rejson.Path;
import com.redislabs.modules.rejson.JReJSON.ExistenceModifier;

public interface JSONOperations {
  Long del(K key, Path path);

  @Nullable
   T get(K key);

  @Nullable
   T get(K key, Class clazz, Path... paths);

  @SuppressWarnings("unchecked")
   List mget(Class clazz, K... keys);
  
  @SuppressWarnings("unchecked")
   List mget(Path path, Class clazz, K... keys);
  
  void set(K key, Object object, ExistenceModifier flag);
  
  void set(K key, Object object);
  
  void set(K key, Object object, Path path);
  
  void set(K key, Object object, ExistenceModifier flag, Path path);
  
  Class type(K key);
  
  Class type(K key, Path path);
  
  Long strAppend(K key, Path path, Object... objects);
  
  Long strLen(K key, Path path);
  
  Long arrAppend(K key, Path path, Object... objects);
  
  Long arrIndex(K key, Path path, Object scalar);
  
  Long arrInsert(K key, Path path, Long index, Object... objects);
  
  Long arrLen(K key, Path path);
  
  @Nullable
   T arrPop(K key, Class clazz, Path path, Long index);
  
  @Nullable
   T arrPop(K key, Class clazz, Path path);
  
  @Nullable
   T arrPop(K key, Class clazz);
  
  Long arrTrim(K key, Path path, Long start, Long stop);

  void toggle(K key, Path path);

  Long numIncrBy(K key, Path path, Long value);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy