类 RedissonCollection

java.lang.Object
com.zengtengpeng.operation.RedissonCollection

public class RedissonCollection extends Object
操作集合
  • 构造器详细资料

    • RedissonCollection

      public RedissonCollection()
  • 方法详细资料

    • getMap

      public <K, V> org.redisson.api.RMap<K,V> getMap(String name)
      获取map集合
      类型参数:
      K -
      V -
      参数:
      name -
      返回:
    • getMap

      public <K, V> org.redisson.api.RMap<K,V> getMap(String name, RealDataMap<K,V> realDataMap)
      获取map集合,如果没有则通过实时数据
      类型参数:
      K -
      V -
      参数:
      name -
      返回:
    • getMap

      public <K, V> org.redisson.api.RMap<K,V> getMap(String name, RealDataMap<K,V> realDataMap, Long time)
      获取map集合,如果没有则通过实时数据
      类型参数:
      K -
      V -
      参数:
      name -
      返回:
    • getMapValue

      public <T> T getMapValue(String name, String key)
      获取map集合对应的key值
      参数:
      name -
      返回:
    • getMapValue

      public <T> T getMapValue(String name, String key, RealData<T> realData)
      先从map集合获取数据,如果没有则从接口获取
      参数:
      name -
      返回:
    • getMapValue

      public <T> T getMapValue(String name, String key, RealData<T> realData, Long time)
      先从map集合获取数据,如果没有则从接口获取
      参数:
      name -
      返回:
    • getMapValue

      public <T> T getMapValue(String name, String key, RealData<T> realData, DataCache<T> dataCache, Long time)
      先从map集合获取数据,如果没有则从接口获取
      参数:
      name -
      返回:
    • setMapValues

      public <K, V> void setMapValues(String name, Map<K,V> data, Long time)
      设置map集合
      参数:
      name -
      data -
      time - 缓存时间,单位毫秒 -1永久缓存
    • setMapValue

      public <T> void setMapValue(String name, String key, T value, Long time)
      设置 map值
      参数:
      name -
      time - 缓存时间,单位毫秒 -1永久缓存
    • setMapValues

      public <K, V> void setMapValues(String name, Map<K,V> data)
      设置map集合
      参数:
      name -
      data -
    • setMapValue

      public void setMapValue(String name, String key, Object value)
      设置map集合
      参数:
      name -
    • getList

      public <T> org.redisson.api.RList<T> getList(String name)
      获取List集合
      参数:
      name -
      返回:
    • getList

      public <T> org.redisson.api.RList<T> getList(String name, RealDataList<T> realDataList, Long time)
      获取List集合 如果没有则通过实时数据获取
      参数:
      name -
      返回:
    • getList

      public <T> org.redisson.api.RList<T> getList(String name, RealDataList<T> realDataList)
      获取List集合对应的index值
      参数:
      name -
      返回:
    • getListValue

      public <T> T getListValue(String name, Integer index)
      获取List集合对应的index值
      参数:
      name -
      返回:
    • setListValues

      public <T> void setListValues(String name, List<T> data, Long time)
      设置List集合
      参数:
      name -
      data -
      time - 缓存时间,单位毫秒 -1永久缓存
    • setListValue

      public <T> void setListValue(String name, T data, Long time)
      设置List集合
      参数:
      name -
      data -
      time - 缓存时间,单位毫秒 -1永久缓存
    • setListValues

      public <T> void setListValues(String name, List<T> data)
      设置List集合
      参数:
      name -
      data -
    • setListValue

      public void setListValue(String name, Object data)
      设置List集合
      参数:
      name -
      data -
    • getSet

      public <T> org.redisson.api.RSet<T> getSet(String name)
      获取set集合
      参数:
      name -
      返回:
    • getSet

      public <T> org.redisson.api.RSet<T> getSet(String name, RealDataSet<T> realDataSet, Long time)
      获取List集合 如果没有则通过实时数据获取
      参数:
      name -
      返回:
    • getSet

      public <T> org.redisson.api.RSet<T> getSet(String name, RealDataSet<T> realDataSet)
      获取List集合对应的index值
      参数:
      name -
      返回:
    • setSetValues

      public <T> void setSetValues(String name, Set<T> data, Long time)
      设置set集合
      参数:
      name -
      data -
      time - 缓存时间,单位毫秒 -1永久缓存
    • setSetValue

      public <T> void setSetValue(String name, T data, Long time)
      设置set集合
      参数:
      name -
      data -
      time - 缓存时间,单位毫秒 -1永久缓存
    • setSetValues

      public <T> void setSetValues(String name, Set<T> data)
      设置set集合
      参数:
      name -
      data -
    • setSetValues

      public void setSetValues(String name, Object data)
      设置set集合
      参数:
      name -
      data -