pub trait StringCommands: CommandExecutor {
// Provided methods
fn lcs_len<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>
where K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn lcs<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
) -> Pin<Box<dyn Future<Output = ValkeyResult<Bytes>> + Send + 'async_trait>>
where K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
fn lcs_idx<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
min_match_len: Option<i64>,
with_match_len: bool,
) -> Pin<Box<dyn Future<Output = ValkeyResult<ValkeyValue>> + Send + 'async_trait>>
where K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait { ... }
}Expand description
String commands (GET, SET, APPEND, INCR, …).
Provided Methods§
Sourcefn lcs_len<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>where
K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn lcs_len<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
) -> Pin<Box<dyn Future<Output = ValkeyResult<i64>> + Send + 'async_trait>>where
K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
Longest common subsequence length between two keys (LCS ... LEN).
Sourcefn lcs<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
) -> Pin<Box<dyn Future<Output = ValkeyResult<Bytes>> + Send + 'async_trait>>where
K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn lcs<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
) -> Pin<Box<dyn Future<Output = ValkeyResult<Bytes>> + Send + 'async_trait>>where
K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
Get the longest common subsequence of two keys (LCS).
Sourcefn lcs_idx<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
min_match_len: Option<i64>,
with_match_len: bool,
) -> Pin<Box<dyn Future<Output = ValkeyResult<ValkeyValue>> + Send + 'async_trait>>where
K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn lcs_idx<'life0, 'async_trait, K1, K2>(
&'life0 self,
key1: K1,
key2: K2,
min_match_len: Option<i64>,
with_match_len: bool,
) -> Pin<Box<dyn Future<Output = ValkeyResult<ValkeyValue>> + Send + 'async_trait>>where
K1: 'async_trait + ToValkeyArgs + Send,
K2: 'async_trait + ToValkeyArgs + Send,
Self: Sync + 'async_trait,
'life0: 'async_trait,
Get the LCS match positions between two keys (LCS ... IDX). Returns the
raw structured reply (a map of matches/len). Pass min_match_len to
filter short matches, and with_match_len to include per-match lengths.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".