miniredis icon indicating copy to clipboard operation
miniredis copied to clipboard

How to use Hgetall or Hmset by miniredis?

Open Liufeiyang0703 opened this issue 3 years ago • 1 comments

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?

Liufeiyang0703 avatar Aug 23 '22 03:08 Liufeiyang0703

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.

alicebob avatar Aug 23 '22 05:08 alicebob