We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be5f3d3 commit 48bdfb6Copy full SHA for 48bdfb6
src/redismodule.rs
@@ -74,6 +74,12 @@ impl From<Vec<String>> for RedisValue {
74
}
75
76
77
+impl From<Vec<&String>> for RedisValue {
78
+ fn from(strings: Vec<&String>) -> Self {
79
+ RedisValue::Array(strings.into_iter().map(|s| RedisValue::BulkString(s.to_string())).collect())
80
+ }
81
+}
82
+
83
impl From<Vec<i64>> for RedisValue {
84
fn from(nums: Vec<i64>) -> Self {
85
RedisValue::Array(nums.into_iter().map(RedisValue::Integer).collect())
0 commit comments