I have Hash keys like this in my cache -
products:P101
products:P211
products:P327
...
Now i want to HSCAN on these cache items using widlcard but it is not working
hscan "products:P121" 0 //this works
scan 0 match products:* //this works
hscan "products:*" 0 //this does not work
I also want to check in my c# .net core application whether any items exists using wild card scan I used below code but it does not return any data -
var db = s_redis.GetDatabase();
var cachedItem = db.HashScan("products:*");
var count = cachedItem.ToList().Count; //this is always 0
Can someone please help me to make below 2 things work
c# - var cachedItem = db.HashScan("products:*"); //this is always 0
cmd - hscan "products:*" 0 //this does not work