I'm trying to run the HSCAN command in Redis to match only the hash fields that are needed via C#
This is what the code looks like
var options = new ConfigurationOptions
{
EndPoints = { "endpoint" },
Proxy = Proxy.Twemproxy
};
twemproxy_new = ConnectionMultiplexer.Connect(options);
db = twemproxy_new.GetDatabase();
Dictionary<string,string> inputDict = new Dictionary<string, string>();
// populate inputDict with "n" fields & values
var cachekey = "my_hash";
db.GetDatabase().HashSet(cachekey, inputDict, CommandFlags.FireAndForget);
db.HashScan(cacheKey, "*9*");
// this is where it fails with the exception
// Command is not available on your server: HSCAN
But when I run the HSCAN command on the twemproxy server it seems to work as expected
HSCAN cache_Key 0 MATCH *pattern*
What am I missing?
Thanks