Class BlockingTransactionalSetCommandsImpl<K,​V>

    • Method Detail

      • sadd

        public void sadd​(K key,
                         V... values)
        Description copied from interface: TransactionalSetCommands
        Execute the command SADD. Summary: Add one or more members to a set Group: set Requires Redis 1.0.0
        Specified by:
        sadd in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
        values - the values
      • sdiffstore

        public void sdiffstore​(K destination,
                               K... keys)
        Description copied from interface: TransactionalSetCommands
        Execute the command SDIFFSTORE. Summary: Subtract multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0
        Specified by:
        sdiffstore in interface TransactionalSetCommands<K,​V>
        Parameters:
        destination - the key
        keys - the keys
      • sintercard

        public void sintercard​(int limit,
                               K... keys)
        Description copied from interface: TransactionalSetCommands
        Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0
        Specified by:
        sintercard in interface TransactionalSetCommands<K,​V>
        Parameters:
        limit - When provided with the optional LIMIT argument (which defaults to 0 and means unlimited), if the intersection cardinality reaches limit partway through the computation, the algorithm will exit and yield limit as the cardinality.
        keys - the keys
      • sinterstore

        public void sinterstore​(K destination,
                                K... keys)
        Description copied from interface: TransactionalSetCommands
        Execute the command SINTERSTORE. Summary: Intersect multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0
        Specified by:
        sinterstore in interface TransactionalSetCommands<K,​V>
        Parameters:
        destination - the key
        keys - the keys
      • sismember

        public void sismember​(K key,
                              V member)
        Description copied from interface: TransactionalSetCommands
        Execute the command SISMEMBER. Summary: Determine if a given value is a member of a set Group: set Requires Redis 1.0.0
        Specified by:
        sismember in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
        member - the member to check
      • smismember

        public void smismember​(K key,
                               V... members)
        Description copied from interface: TransactionalSetCommands
        Execute the command SMISMEMBER. Summary: Returns the membership associated with the given elements for a set Group: set Requires Redis 6.2.0
        Specified by:
        smismember in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
        members - the members to check
      • smove

        public void smove​(K source,
                          K destination,
                          V member)
        Description copied from interface: TransactionalSetCommands
        Execute the command SMOVE. Summary: Move a member from one set to another Group: set Requires Redis 1.0.0
        Specified by:
        smove in interface TransactionalSetCommands<K,​V>
        Parameters:
        source - the key
        destination - the key
        member - the member to move
      • spop

        public void spop​(K key)
        Description copied from interface: TransactionalSetCommands
        Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0
        Specified by:
        spop in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
      • spop

        public void spop​(K key,
                         int count)
        Description copied from interface: TransactionalSetCommands
        Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0
        Specified by:
        spop in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
      • srandmember

        public void srandmember​(K key,
                                int count)
        Description copied from interface: TransactionalSetCommands
        Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0
        Specified by:
        srandmember in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
        count - the number of elements to pick
      • srem

        public void srem​(K key,
                         V... members)
        Description copied from interface: TransactionalSetCommands
        Execute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0
        Specified by:
        srem in interface TransactionalSetCommands<K,​V>
        Parameters:
        key - the key
      • sunionstore

        public void sunionstore​(K destination,
                                K... keys)
        Description copied from interface: TransactionalSetCommands
        Execute the command SUNIONSTORE. Summary: Add multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0
        Specified by:
        sunionstore in interface TransactionalSetCommands<K,​V>
        Parameters:
        destination - the destination key
        keys - the keys