Interface TransactionalSetCommands<K,V>

All Superinterfaces:
TransactionalRedisCommands
All Known Implementing Classes:
BlockingTransactionalSetCommandsImpl

public interface TransactionalSetCommands<K,V> extends TransactionalRedisCommands
  • Method Details

    • sadd

      void sadd(K key, V... values)
      Execute the command SADD. Summary: Add one or more members to a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
      values - the values
    • scard

      void scard(K key)
      Execute the command SCARD. Summary: Get the number of members in a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
    • sdiff

      void sdiff(K... keys)
      Execute the command SDIFF. Summary: Subtract multiple sets Group: set Requires Redis 1.0.0
      Parameters:
      keys - the keys
    • sdiffstore

      void sdiffstore(K destination, K... keys)
      Execute the command SDIFFSTORE. Summary: Subtract multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0
      Parameters:
      destination - the key
      keys - the keys
    • sinter

      void sinter(K... keys)
      Execute the command SINTER. Summary: Intersect multiple sets Group: set Requires Redis 1.0.0
      Parameters:
      keys - the keys
    • sintercard

      void sintercard(K... keys)
      Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0
      Parameters:
      keys - the keys
    • sintercard

      void sintercard(int limit, K... keys)
      Execute the command SINTERCARD. Summary: Intersect multiple sets and return the cardinality of the result Group: set Requires Redis 7.0.0
      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

      void sinterstore(K destination, K... keys)
      Execute the command SINTERSTORE. Summary: Intersect multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0
      Parameters:
      destination - the key
      keys - the keys
    • sismember

      void sismember(K key, V member)
      Execute the command SISMEMBER. Summary: Determine if a given value is a member of a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
      member - the member to check
    • smembers

      void smembers(K key)
      Execute the command SMEMBERS. Summary: Get all the members in a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
    • smismember

      void smismember(K key, V... members)
      Execute the command SMISMEMBER. Summary: Returns the membership associated with the given elements for a set Group: set Requires Redis 6.2.0
      Parameters:
      key - the key
      members - the members to check
    • smove

      void smove(K source, K destination, V member)
      Execute the command SMOVE. Summary: Move a member from one set to another Group: set Requires Redis 1.0.0
      Parameters:
      source - the key
      destination - the key
      member - the member to move
    • spop

      void spop(K key)
      Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
    • spop

      void spop(K key, int count)
      Execute the command SPOP. Summary: Remove and return one or multiple random members from a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
    • srandmember

      void srandmember(K key)
      Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
    • srandmember

      void srandmember(K key, int count)
      Execute the command SRANDMEMBER. Summary: Get one or multiple random members from a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
      count - the number of elements to pick
    • srem

      void srem(K key, V... members)
      Execute the command SREM. Summary: Remove one or more members from a set Group: set Requires Redis 1.0.0
      Parameters:
      key - the key
    • sunion

      void sunion(K... keys)
      Execute the command SUNION. Summary: Add multiple sets Group: set Requires Redis 1.0.0
      Parameters:
      keys - the keys
    • sunionstore

      void sunionstore(K destination, K... keys)
      Execute the command SUNIONSTORE. Summary: Add multiple sets and store the resulting set in a key Group: set Requires Redis 1.0.0
      Parameters:
      destination - the destination key
      keys - the keys