When trying to delete hash's fields by calling RedisConnection.Hashes.Remove(int db, string key, string[] fields, bool queueJump = false) I get an exception saying: "ERR wrong number of arguments for 'hdel' command".
Here is a code that produces it:
static void Main(string[] args)
{
var connection = new RedisConnection("localhost");
connection.Open();
var transaction = connection.CreateTransaction();
// setting values to fields - works fine!
for (int index = 0; index < 2; index++)
{
transaction.Hashes.Set(0, "s1", String.Format("f{0}", index.ToString()), String.Format("v{0}", index.ToString()));
}
transaction.Execute().Wait();
// Here is where the exception is being thrown
connection.Hashes.Remove(0, "s1", new string[] { "f1", "f2" }).Wait();
Console.ReadLine();
}
I'm using Booksleeve 1.3.37.0 taken from nuget. Thanks,