Currently SetOpts structure does not provide structural guarantees for the values passed. Redis specification tells:
SET key value [NX | XX] [GET] [EX seconds | PX milliseconds | EXAT unix-time-seconds | PXAT unix-time-milliseconds | KEEPTTL]
It means that EX, PX, EXAT, PXAT, KEEPTTL options are mutually exclusive, but it's not guaranteed by the type. It would be nice to fix it, as well as all the other similar occurrences.
Currently SetOpts structure does not provide structural guarantees for the values passed. Redis specification tells:
It means that EX, PX, EXAT, PXAT, KEEPTTL options are mutually exclusive, but it's not guaranteed by the type. It would be nice to fix it, as well as all the other similar occurrences.