Trait redis_driver::HashCommands
source · [−]pub trait HashCommands: CommandSend {
Show 15 methods
fn hdel<K, F, C>(
&self,
key: K,
fields: C
) -> Pin<Box<dyn Future<Output = Result<usize>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
{ ... }
fn hexists<K, F>(
&self,
key: K,
field: F
) -> Pin<Box<dyn Future<Output = Result<bool>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
{ ... }
fn hget<K, F, V>(
&self,
key: K,
field: F
) -> Pin<Box<dyn Future<Output = Result<V>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
V: FromValue,
{ ... }
fn hgetall<'a, K, F, V>(
&'a self,
key: K
) -> Pin<Box<dyn Future<Output = Result<Vec<(F, V)>>> + 'a>>
where
K: Into<BulkString>,
F: FromValue + 'a,
V: FromValue + 'a,
{ ... }
fn hincrby<K, F>(
&self,
key: K,
field: F,
increment: i64
) -> Pin<Box<dyn Future<Output = Result<i64>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
{ ... }
fn hincrbyfloat<K, F>(
&self,
key: K,
field: F,
increment: f64
) -> Pin<Box<dyn Future<Output = Result<f64>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
{ ... }
fn hkeys<K, F>(
&self,
key: K
) -> Pin<Box<dyn Future<Output = Result<Vec<F>>> + '_>>
where
K: Into<BulkString>,
F: FromValue,
{ ... }
fn hlen<K>(
&self,
key: K
) -> Pin<Box<dyn Future<Output = Result<usize>> + '_>>
where
K: Into<BulkString>,
{ ... }
fn hmget<K, F, V, C>(
&self,
key: K,
fields: C
) -> Pin<Box<dyn Future<Output = Result<Vec<V>>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
V: FromValue,
{ ... }
fn hrandfield<K>(&self, key: K) -> HRandField<'_, Self>
where
K: Into<BulkString>,
{ ... }
fn hscan<K>(&self, key: K, cursor: u64) -> HScan<'_, Self>
where
K: Into<BulkString>,
{ ... }
fn hset<K, F, V, I>(
&self,
key: K,
items: I
) -> Pin<Box<dyn Future<Output = Result<usize>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
I: KeyValueArgOrCollection<F, V>,
{ ... }
fn hsetnx<K, F, V>(
&self,
key: K,
field: F,
value: V
) -> Pin<Box<dyn Future<Output = Result<bool>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
V: Into<BulkString>,
{ ... }
fn hstrlen<K, F>(
&self,
key: K,
field: F
) -> Pin<Box<dyn Future<Output = Result<usize>> + '_>>
where
K: Into<BulkString>,
F: Into<BulkString>,
{ ... }
fn hvals<K, V>(
&self,
key: K
) -> Pin<Box<dyn Future<Output = Result<Vec<V>>> + '_>>
where
K: Into<BulkString>,
V: FromValue,
{ ... }
}
Expand description
Provided Methods
sourcefn hdel<K, F, C>(
&self,
key: K,
fields: C
) -> Pin<Box<dyn Future<Output = Result<usize>> + '_>>where
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
fn hdel<K, F, C>(
&self,
key: K,
fields: C
) -> Pin<Box<dyn Future<Output = Result<usize>> + '_>>where
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
sourcefn hincrbyfloat<K, F>(
&self,
key: K,
field: F,
increment: f64
) -> Pin<Box<dyn Future<Output = Result<f64>> + '_>>where
K: Into<BulkString>,
F: Into<BulkString>,
fn hincrbyfloat<K, F>(
&self,
key: K,
field: F,
increment: f64
) -> Pin<Box<dyn Future<Output = Result<f64>> + '_>>where
K: Into<BulkString>,
F: Into<BulkString>,
sourcefn hmget<K, F, V, C>(
&self,
key: K,
fields: C
) -> Pin<Box<dyn Future<Output = Result<Vec<V>>> + '_>>where
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
V: FromValue,
fn hmget<K, F, V, C>(
&self,
key: K,
fields: C
) -> Pin<Box<dyn Future<Output = Result<Vec<V>>> + '_>>where
K: Into<BulkString>,
F: Into<BulkString>,
C: SingleArgOrCollection<F>,
V: FromValue,
sourcefn hrandfield<K>(&self, key: K) -> HRandField<'_, Self>where
K: Into<BulkString>,
fn hrandfield<K>(&self, key: K) -> HRandField<'_, Self>where
K: Into<BulkString>,
When called with just the key argument, return a random field from the hash value stored at key.