miniredis
miniredis copied to clipboard
How to use Hgetall or Hmset by miniredis?
I want to have a test for my function,but I can't find "hgetall" and "hmset" in direct.go.How do I use them?
I want to have a test for my function,but I can't find "hgetall" and "hmset" in direct.go.How do I use them?
Hi, thanks for the issue. Most users connect a redis client in the test to miniredis and load/set the values that way. Or you can make a PR which adds the methods to direct.go.