The set commands SADD and SREM accept multiple member arguments since Redis version 2.4; in nim's redis lib only the former is implemented via the sladd proc
https://github.com/nim-lang/redis/blob/master/src/redis.nim#L843
For adding multiple member support for both I can see two ways about it:
- Add an
slrem proc next to the existing srem proc. This would be in line with the existing library, but creates another non-obvious function.
- Change both
sadd and srem to support both a string and seq[string] as members argument; deprecating / removing sladd.
What would be the preferred approach?
The set commands
SADDandSREMaccept multiplememberarguments since Redis version 2.4; in nim's redis lib only the former is implemented via thesladdprochttps://github.com/nim-lang/redis/blob/master/src/redis.nim#L843
For adding multiple member support for both I can see two ways about it:
slremproc next to the existingsremproc. This would be in line with the existing library, but creates another non-obvious function.saddandsremto support both astringandseq[string]asmembersargument; deprecating / removingsladd.What would be the preferred approach?