zio / zio-redis

A ZIO-based redis client

Home Page:https://zio.github.io/zio-redis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Missing Command HRANDFIELD

hcwilhelm opened this issue · comments

According to https://redis.io/commands/hrandfield Redis support the command HRANDFIELD, but this command is missing in the Hashes API.

Tasks

  • Implement the command
  • Add tests for the command
  • Add support for this command to the TestExecutor

@hcwilhelm I have try to implement this with this PR #370.
I have implemented two different methods depending on the return value (field or array of fields).
Is this a valid approach ?

@jgoday i will review it in the next couple of days. But from what you described this approach sounds right to me. We split out different methods depending on the return type.