pub async fn compare_and_swap(
key: String,
current: Value,
value: Option<Value>,
) -> Result<i64>Expand description
Serialize and set the value at a key if the current value hasn’t changed. Returns count of modified keys. Requires that redis-cas is loaded on Redis