2
私は錆を使用してアクセスRedisのにしようとしている以下:間違った数のRedis-RSとmgetは使用して
extern crate redis;
use redis::{Client, Commands, Connection, RedisResult};
fn main() {
let redis_client = Client::open("redis://127.0.0.1/").unwrap();
let redis_conn = redis_client.get_connection().unwrap();
let mut keys_to_get = vec![];
keys_to_get.push("random_key_1".to_string());
keys_to_get.push("random_key_2".to_string());
let redis_result: String = redis_conn.get(keys_to_get).unwrap();
}
私はcargo run
を実行すると、私が手:
Running `target/debug/test_resdis`
thread '<main>' panicked at 'called `Result::unwrap()` on an `Err` value: An error was signalled by the server: wrong number of arguments for 'get' command', ../src/libcore/result.rs:746
note: Run with `RUST_BACKTRACE=1` for a backtrace.
error: Process didn't exit successfully: `target/debug/test_resdis` (exit code: 101)
アムIを何か間違っている、またはバグですか? netcatをサーバに対するあなたのプログラムを実行する
ここにあります:https://github.com/mitsuhiko/redis-rs/issues/95ご協力いただきありがとうございます。 – cmedeiros
mitsuhiko(redis-rsクリエイター)はすでにそれを修正しており、次のリリースになるはずです – cmedeiros