trait SetsApi extends ApiSubset
- Alphabetic
- By Inheritance
- SetsApi
- ApiSubset
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Field = RedisSerialization.Field
- Definition Classes
- ApiSubset
-
type
Key = RedisSerialization.Key
- Definition Classes
- ApiSubset
-
type
Record = RedisSerialization.Record
- Definition Classes
- ApiSubset
-
abstract
type
Result[A]
The type constructor into which a result of each command is wrapped.
-
type
Value = RedisSerialization.Value
- Definition Classes
- ApiSubset
Abstract Value Members
-
abstract
def
execute[A](command: RedisCommand[A]): Result[A]
- Definition Classes
- ApiSubset
-
abstract
val
serialization: RedisSerialization
- Definition Classes
- ApiSubset
Concrete Value Members
-
def
sadd(key: Key, members: Iterable[Value]): Result[Int]
Executes SADD or simply returns 0 when
members
is empty -
def
sadd(key: Key, member: Value, members: Value*): Result[Int]
Executes SADD
-
def
sadd(key: Key, member: Value): Result[Boolean]
Executes SADD
-
def
scard(key: Key): Result[Long]
Executes SCARD
-
def
sdiff(source: Key, keys: Iterable[Key]): Result[commons.BSet[Value]]
Executes SDIFF
-
def
sdiff(source: Key, keys: Key*): Result[commons.BSet[Value]]
Executes SDIFF
-
def
sdiffstore(destination: Key, source: Key, keys: Iterable[Key]): Result[Long]
Executes SDIFFSTORE
-
def
sdiffstore(destination: Key, source: Key, keys: Key*): Result[Long]
Executes SDIFFSTORE
-
def
sinter(keys: Iterable[Key]): Result[commons.BSet[Value]]
Executes SINTER NOTE:
keys
MUST NOT be empty -
def
sinter(key: Key, keys: Key*): Result[commons.BSet[Value]]
Executes SINTER
-
def
sinterstore(destination: Key, keys: Iterable[Key]): Result[Long]
Executes SINTERSTORE NOTE:
keys
MUST NOT be empty -
def
sinterstore(destination: Key, key: Key, keys: Key*): Result[Long]
Executes SINTERSTORE
-
def
sismember(key: Key, member: Value): Result[Boolean]
Executes SISMEMBER
-
def
smembers(key: Key): Result[commons.BSet[Value]]
Executes SMEMBERS
-
def
smove(source: Key, destination: Key, member: Value): Result[Boolean]
Executes SMOVE
-
def
spop(key: Key, count: Int): Result[commons.BSet[Value]]
Executes SPOP
-
def
spop(key: Key): Result[commons.Opt[Value]]
Executes SPOP
-
def
srandmember(key: Key, count: Int): Result[Seq[Value]]
Executes SRANDMEMBER
-
def
srandmember(key: Key): Result[commons.Opt[Value]]
Executes SRANDMEMBER
-
def
srandmemberDistinct(key: Key, count: Int): Result[commons.BSet[Value]]
Executes SRANDMEMBER
-
def
srem(key: Key, members: Iterable[Value]): Result[Int]
Executes SREM or simply returns 0 when
members
is empty -
def
srem(key: Key, member: Value, members: Value*): Result[Int]
Executes SREM
-
def
srem(key: Key, member: Value): Result[Boolean]
Executes SREM
-
def
sscan(key: Key, cursor: Cursor, matchPattern: commons.OptArg[Value] = OptArg.Empty, count: commons.OptArg[Int] = OptArg.Empty): Result[(Cursor, Seq[Value])]
Executes SSCAN
-
def
sunion(keys: Iterable[Key]): Result[commons.BSet[Value]]
Executes SUNION or simply returns empty set when
keys
is empty -
def
sunion(key: Key, keys: Key*): Result[commons.BSet[Value]]
Executes SUNION
-
def
sunionstore(destination: Key, keys: Iterable[Key]): Result[Long]
Executes SUNIONSTORE NOTE: unlike in
SUNION
keys
MUST NOT be empty becauseSUNIONSTORE
overwrites destination key.Executes SUNIONSTORE NOTE: unlike in
SUNION
keys
MUST NOT be empty becauseSUNIONSTORE
overwrites destination key. An operation equivalent to invokingSUNIONSTORE
with onlydestination
and nokeys
would beDEL destination
-
def
sunionstore(destination: Key, key: Key, keys: Key*): Result[Long]
Executes SUNIONSTORE