Interface RBucketsRx


  • public interface RBucketsRx
    Operations over multiple Bucket objects.
    Author:
    Nikita Koksharov
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <V> io.reactivex.rxjava3.core.Single<Map<String,​V>> get​(String... keys)
      Returns Redis object mapped by key.
      io.reactivex.rxjava3.core.Completable set​(Map<String,​?> buckets)
      Saves objects mapped by Redis key.
      io.reactivex.rxjava3.core.Single<Boolean> trySet​(Map<String,​?> buckets)
      Try to save objects mapped by Redis key.
    • Method Detail

      • get

        <V> io.reactivex.rxjava3.core.Single<Map<String,​V>> get​(String... keys)
        Returns Redis object mapped by key. Result Map is not contains key-value entry for null values.
        Type Parameters:
        V - type of value
        Parameters:
        keys - - keys
        Returns:
        Map with name of bucket as key and bucket as value
      • trySet

        io.reactivex.rxjava3.core.Single<Boolean> trySet​(Map<String,​?> buckets)
        Try to save objects mapped by Redis key. If at least one of them is already exist then don't set none of them.
        Parameters:
        buckets - - map of buckets
        Returns:
        true if object has been set otherwise false
      • set

        io.reactivex.rxjava3.core.Completable set​(Map<String,​?> buckets)
        Saves objects mapped by Redis key.
        Parameters:
        buckets - - map of buckets
        Returns:
        void