Trait redis_driver::SortedSetCommands
source · [−]pub trait SortedSetCommands<T>: PrepareCommand<T> {
Show 37 methods
fn bzmpop<K, C, E>(
&self,
timeout: f64,
keys: C,
where_: ZWhere,
count: usize
) -> CommandResult<'_, T, Option<ZMPopResult<E>>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
{ ... }
fn bzpopmax<K, KK, E, K1>(
&self,
keys: KK,
timeout: f64
) -> CommandResult<'_, T, Option<Vec<(K1, E, f64)>>>
where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
K1: FromValue,
E: FromValue,
{ ... }
fn bzpopmin<K, KK, E, K1>(
&self,
keys: KK,
timeout: f64
) -> CommandResult<'_, T, Option<Vec<(K1, E, f64)>>>
where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
K1: FromValue,
E: FromValue,
{ ... }
fn zadd<K, M, I>(
&self,
key: K,
items: I,
options: ZAddOptions
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, M)>,
{ ... }
fn zadd_incr<K, M>(
&self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M
) -> CommandResult<'_, T, Option<f64>>
where
K: Into<BulkString>,
M: Into<BulkString>,
{ ... }
fn zcard<K>(&self, key: K) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
{ ... }
fn zcount<K, M1, M2>(
&self,
key: K,
min: M1,
max: M2
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
{ ... }
fn zdiff<K, C, E>(&self, keys: C) -> CommandResult<'_, T, Vec<E>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
{ ... }
fn zdiff_with_scores<K, C, E>(
&self,
keys: C
) -> CommandResult<'_, T, Vec<(E, f64)>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
{ ... }
fn zdiffstore<D, K, C>(
&self,
destination: D,
keys: C
) -> CommandResult<'_, T, usize>
where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
{ ... }
fn zincrby<K, M>(
&self,
key: K,
increment: f64,
member: M
) -> CommandResult<'_, T, f64>
where
K: Into<BulkString>,
M: Into<BulkString>,
{ ... }
fn zinter<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<E>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
{ ... }
fn zinter_with_scores<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<(E, f64)>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
{ ... }
fn zintercard<K, C>(
&self,
keys: C,
limit: usize
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
{ ... }
fn zinterstore<D, K, C, W>(
&self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, usize>
where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
{ ... }
fn zlexcount<K, M1, M2>(
&self,
key: K,
min: M1,
max: M2
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
{ ... }
fn zmpop<K, C, E>(
&self,
keys: C,
where_: ZWhere,
count: usize
) -> CommandResult<'_, T, Option<ZMPopResult<E>>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
{ ... }
fn zmscore<K, M, C>(
&self,
key: K,
members: C
) -> CommandResult<'_, T, Vec<Option<f64>>>
where
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
{ ... }
fn zpopmax<K, M>(
&self,
key: K,
count: usize
) -> CommandResult<'_, T, Vec<(M, f64)>>
where
K: Into<BulkString>,
M: FromValue,
{ ... }
fn zpopmin<K, M>(
&self,
key: K,
count: usize
) -> CommandResult<'_, T, Vec<(M, f64)>>
where
K: Into<BulkString>,
M: FromValue,
{ ... }
fn zrandmember<K, E>(&self, key: K) -> CommandResult<'_, T, E>
where
K: Into<BulkString>,
E: FromValue,
{ ... }
fn zrandmembers<K, E>(
&self,
key: K,
count: isize
) -> CommandResult<'_, T, Vec<E>>
where
K: Into<BulkString>,
E: FromValue,
{ ... }
fn zrandmembers_with_scores<K, E>(
&self,
key: K,
count: isize
) -> CommandResult<'_, T, Vec<E>>
where
K: Into<BulkString>,
E: FromValue,
{ ... }
fn zrange<K, S, E>(
&self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> CommandResult<'_, T, Vec<E>>
where
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
{ ... }
fn zrange_with_scores<K, S, E>(
&self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> CommandResult<'_, T, Vec<(E, f64)>>
where
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
{ ... }
fn zrangestore<D, S, SS>(
&self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> CommandResult<'_, T, usize>
where
D: Into<BulkString>,
S: Into<BulkString>,
SS: Into<BulkString>,
{ ... }
fn zrank<K, M>(
&self,
key: K,
member: M
) -> CommandResult<'_, T, Option<usize>>
where
K: Into<BulkString>,
M: Into<BulkString>,
{ ... }
fn zrem<K, M, C>(&self, key: K, members: C) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
{ ... }
fn zremrangebylex<K, S>(
&self,
key: K,
start: S,
stop: S
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
S: Into<BulkString>,
{ ... }
fn zremrangebyrank<K>(
&self,
key: K,
start: isize,
stop: isize
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
{ ... }
fn zremrangebyscore<K, S>(
&self,
key: K,
start: S,
stop: S
) -> CommandResult<'_, T, usize>
where
K: Into<BulkString>,
S: Into<BulkString>,
{ ... }
fn zrevrank<K, M>(
&self,
key: K,
member: M
) -> CommandResult<'_, T, Option<usize>>
where
K: Into<BulkString>,
M: Into<BulkString>,
{ ... }
fn zscan<K, M>(
&self,
key: K,
cursor: usize,
options: ZScanOptions
) -> CommandResult<'_, T, (u64, Vec<(M, f64)>)>
where
K: Into<BulkString>,
M: FromValue,
{ ... }
fn zscore<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<f64>>
where
K: Into<BulkString>,
M: Into<BulkString>,
{ ... }
fn zunion<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<E>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
{ ... }
fn zunion_with_scores<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<(E, f64)>>
where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
{ ... }
fn zunionstore<D, K, C, W>(
&self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, usize>
where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
{ ... }
}
Expand description
Provided Methods
sourcefn bzmpop<K, C, E>(
&self,
timeout: f64,
keys: C,
where_: ZWhere,
count: usize
) -> CommandResult<'_, T, Option<ZMPopResult<E>>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn bzmpop<K, C, E>(
&self,
timeout: f64,
keys: C,
where_: ZWhere,
count: usize
) -> CommandResult<'_, T, Option<ZMPopResult<E>>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
sourcefn bzpopmax<K, KK, E, K1>(
&self,
keys: KK,
timeout: f64
) -> CommandResult<'_, T, Option<Vec<(K1, E, f64)>>>where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
K1: FromValue,
E: FromValue,
fn bzpopmax<K, KK, E, K1>(
&self,
keys: KK,
timeout: f64
) -> CommandResult<'_, T, Option<Vec<(K1, E, f64)>>>where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
K1: FromValue,
E: FromValue,
This command is the blocking variant of zpopmax
.
Return
None
when no element could be popped and the timeout expired.- The list of tuple with
- the first element being the name of the key where a member was popped,
- the second element is the popped member itself,
- and the third element is the score of the popped element.
See Also
sourcefn bzpopmin<K, KK, E, K1>(
&self,
keys: KK,
timeout: f64
) -> CommandResult<'_, T, Option<Vec<(K1, E, f64)>>>where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
K1: FromValue,
E: FromValue,
fn bzpopmin<K, KK, E, K1>(
&self,
keys: KK,
timeout: f64
) -> CommandResult<'_, T, Option<Vec<(K1, E, f64)>>>where
K: Into<BulkString>,
KK: SingleArgOrCollection<K>,
K1: FromValue,
E: FromValue,
This command is the blocking variant of zpopmin
.
Return
None
when no element could be popped and the timeout expired.- The list of tuple with
- the first element being the name of the key where a member was popped,
- the second element is the popped member itself,
- and the third element is the score of the popped element.
See Also
sourcefn zadd<K, M, I>(
&self,
key: K,
items: I,
options: ZAddOptions
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, M)>,
fn zadd<K, M, I>(
&self,
key: K,
items: I,
options: ZAddOptions
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M: Into<BulkString>,
I: ArgsOrCollection<(f64, M)>,
Adds all the specified members with the specified scores to the sorted set stored at key.
Return
- When used without optional arguments, the number of elements added to the sorted set (excluding score updates).
- If the
change
option is specified, the number of elements that were changed (added or updated).
See Also
sourcefn zadd_incr<K, M>(
&self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M
) -> CommandResult<'_, T, Option<f64>>where
K: Into<BulkString>,
M: Into<BulkString>,
fn zadd_incr<K, M>(
&self,
key: K,
condition: ZAddCondition,
comparison: ZAddComparison,
change: bool,
score: f64,
member: M
) -> CommandResult<'_, T, Option<f64>>where
K: Into<BulkString>,
M: Into<BulkString>,
sourcefn zcard<K>(&self, key: K) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
fn zcard<K>(&self, key: K) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
sourcefn zcount<K, M1, M2>(
&self,
key: K,
min: M1,
max: M2
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
fn zcount<K, M1, M2>(
&self,
key: K,
min: M1,
max: M2
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
sourcefn zdiff<K, C, E>(&self, keys: C) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn zdiff<K, C, E>(&self, keys: C) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
This command is similar to zdiffstore, but instead of storing the resulting sorted set, it is returned to the client.
Return
The result of the difference
See Also
sourcefn zdiff_with_scores<K, C, E>(
&self,
keys: C
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn zdiff_with_scores<K, C, E>(
&self,
keys: C
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
This command is similar to zdiffstore, but instead of storing the resulting sorted set, it is returned to the client.
Return
The result of the difference with their scores
See Also
sourcefn zdiffstore<D, K, C>(
&self,
destination: D,
keys: C
) -> CommandResult<'_, T, usize>where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn zdiffstore<D, K, C>(
&self,
destination: D,
keys: C
) -> CommandResult<'_, T, usize>where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourcefn zincrby<K, M>(
&self,
key: K,
increment: f64,
member: M
) -> CommandResult<'_, T, f64>where
K: Into<BulkString>,
M: Into<BulkString>,
fn zincrby<K, M>(
&self,
key: K,
increment: f64,
member: M
) -> CommandResult<'_, T, f64>where
K: Into<BulkString>,
M: Into<BulkString>,
sourcefn zinter<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zinter<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zinterstore, but instead of storing the resulting sorted set, it is returned to the client.
Return
The result of the intersection as an array of members
See Also
sourcefn zinter_with_scores<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zinter_with_scores<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zinterstore, but instead of storing the resulting sorted set, it is returned to the client.
Return
The result of the intersection as an array of members with their scores
See Also
sourcefn zintercard<K, C>(&self, keys: C, limit: usize) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
fn zintercard<K, C>(&self, keys: C, limit: usize) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
sourcefn zinterstore<D, K, C, W>(
&self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, usize>where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
fn zinterstore<D, K, C, W>(
&self,
destination: D,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, usize>where
D: Into<BulkString>,
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
sourcefn zlexcount<K, M1, M2>(
&self,
key: K,
min: M1,
max: M2
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
fn zlexcount<K, M1, M2>(
&self,
key: K,
min: M1,
max: M2
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M1: Into<BulkString>,
M2: Into<BulkString>,
sourcefn zmpop<K, C, E>(
&self,
keys: C,
where_: ZWhere,
count: usize
) -> CommandResult<'_, T, Option<ZMPopResult<E>>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
fn zmpop<K, C, E>(
&self,
keys: C,
where_: ZWhere,
count: usize
) -> CommandResult<'_, T, Option<ZMPopResult<E>>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
E: FromValue,
Pops one or more elements, that are member-score pairs, from the first non-empty sorted set in the provided list of key names.
Return
- None if no element could be popped
- A tuple made up of
- The name of the key from which elements were popped
- An array of tuples with all the popped members and their scores
See Also
sourcefn zmscore<K, M, C>(
&self,
key: K,
members: C
) -> CommandResult<'_, T, Vec<Option<f64>>>where
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn zmscore<K, M, C>(
&self,
key: K,
members: C
) -> CommandResult<'_, T, Vec<Option<f64>>>where
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
sourcefn zpopmax<K, M>(
&self,
key: K,
count: usize
) -> CommandResult<'_, T, Vec<(M, f64)>>where
K: Into<BulkString>,
M: FromValue,
fn zpopmax<K, M>(
&self,
key: K,
count: usize
) -> CommandResult<'_, T, Vec<(M, f64)>>where
K: Into<BulkString>,
M: FromValue,
sourcefn zpopmin<K, M>(
&self,
key: K,
count: usize
) -> CommandResult<'_, T, Vec<(M, f64)>>where
K: Into<BulkString>,
M: FromValue,
fn zpopmin<K, M>(
&self,
key: K,
count: usize
) -> CommandResult<'_, T, Vec<(M, f64)>>where
K: Into<BulkString>,
M: FromValue,
sourcefn zrandmember<K, E>(&self, key: K) -> CommandResult<'_, T, E>where
K: Into<BulkString>,
E: FromValue,
fn zrandmember<K, E>(&self, key: K) -> CommandResult<'_, T, E>where
K: Into<BulkString>,
E: FromValue,
sourcefn zrandmembers<K, E>(&self, key: K, count: isize) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
E: FromValue,
fn zrandmembers<K, E>(&self, key: K, count: isize) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
E: FromValue,
Return random elements from the sorted set value stored at key.
Return
- If the provided count argument is positive, return an array of distinct elements. The array’s length is either count or the sorted set’s cardinality (ZCARD), whichever is lower.
- If called with a negative count, the behavior changes and the command is allowed to return the same element multiple times. In this case, the number of returned elements is the absolute value of the specified count.
See Also
sourcefn zrandmembers_with_scores<K, E>(
&self,
key: K,
count: isize
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
E: FromValue,
fn zrandmembers_with_scores<K, E>(
&self,
key: K,
count: isize
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
E: FromValue,
Return random elements with their scores from the sorted set value stored at key.
Return
- If the provided count argument is positive, return an array of distinct elements with their scores. The array’s length is either count or the sorted set’s cardinality (ZCARD), whichever is lower.
- If called with a negative count, the behavior changes and the command is allowed to return the same element multiple times. In this case, the number of returned elements is the absolute value of the specified count.
See Also
sourcefn zrange<K, S, E>(
&self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
fn zrange<K, S, E>(
&self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
sourcefn zrange_with_scores<K, S, E>(
&self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
fn zrange_with_scores<K, S, E>(
&self,
key: K,
start: S,
stop: S,
options: ZRangeOptions
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
S: Into<BulkString>,
E: FromValue,
sourcefn zrangestore<D, S, SS>(
&self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> CommandResult<'_, T, usize>where
D: Into<BulkString>,
S: Into<BulkString>,
SS: Into<BulkString>,
fn zrangestore<D, S, SS>(
&self,
dst: D,
src: S,
start: SS,
stop: SS,
options: ZRangeOptions
) -> CommandResult<'_, T, usize>where
D: Into<BulkString>,
S: Into<BulkString>,
SS: Into<BulkString>,
sourcefn zrank<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<usize>>where
K: Into<BulkString>,
M: Into<BulkString>,
fn zrank<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<usize>>where
K: Into<BulkString>,
M: Into<BulkString>,
sourcefn zrem<K, M, C>(&self, key: K, members: C) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
fn zrem<K, M, C>(&self, key: K, members: C) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
M: Into<BulkString>,
C: SingleArgOrCollection<M>,
sourcefn zremrangebylex<K, S>(
&self,
key: K,
start: S,
stop: S
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
S: Into<BulkString>,
fn zremrangebylex<K, S>(
&self,
key: K,
start: S,
stop: S
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
S: Into<BulkString>,
sourcefn zremrangebyrank<K>(
&self,
key: K,
start: isize,
stop: isize
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
fn zremrangebyrank<K>(
&self,
key: K,
start: isize,
stop: isize
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
sourcefn zremrangebyscore<K, S>(
&self,
key: K,
start: S,
stop: S
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
S: Into<BulkString>,
fn zremrangebyscore<K, S>(
&self,
key: K,
start: S,
stop: S
) -> CommandResult<'_, T, usize>where
K: Into<BulkString>,
S: Into<BulkString>,
sourcefn zrevrank<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<usize>>where
K: Into<BulkString>,
M: Into<BulkString>,
fn zrevrank<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<usize>>where
K: Into<BulkString>,
M: Into<BulkString>,
sourcefn zscan<K, M>(
&self,
key: K,
cursor: usize,
options: ZScanOptions
) -> CommandResult<'_, T, (u64, Vec<(M, f64)>)>where
K: Into<BulkString>,
M: FromValue,
fn zscan<K, M>(
&self,
key: K,
cursor: usize,
options: ZScanOptions
) -> CommandResult<'_, T, (u64, Vec<(M, f64)>)>where
K: Into<BulkString>,
M: FromValue,
sourcefn zscore<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<f64>>where
K: Into<BulkString>,
M: Into<BulkString>,
fn zscore<K, M>(&self, key: K, member: M) -> CommandResult<'_, T, Option<f64>>where
K: Into<BulkString>,
M: Into<BulkString>,
sourcefn zunion<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zunion<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<E>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zunionstore, but instead of storing the resulting sorted set, it is returned to the client.
Return
The result of the unionsection as an array of members
See Also
sourcefn zunion_with_scores<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
fn zunion_with_scores<K, C, W, E>(
&self,
keys: C,
weights: Option<W>,
aggregate: ZAggregate
) -> CommandResult<'_, T, Vec<(E, f64)>>where
K: Into<BulkString>,
C: SingleArgOrCollection<K>,
W: SingleArgOrCollection<f64>,
E: FromValue,
This command is similar to zunionstore, but instead of storing the resulting sorted set, it is returned to the client.
Return
The result of the unionsection as an array of members with their scores