// Set fields with 60 second expiration, only if none exist constoptions: HSetExOptions = { fieldConditionalChange:HashFieldConditionalChange.ONLY_IF_NONE_EXIST, expiry: { type:TimeUnit.Seconds, count:60 } };
// Set fields and keep existing TTL constkeepTtlOptions: HSetExOptions = { expiry:"KEEPTTL" };
Optional arguments for the HSETEX command.
Example
See https://valkey.io/commands/hsetex/ for more details.