Class HSetExOptions.HSetExOptionsBuilder

  • Enclosing class:
    HSetExOptions

    public static class HSetExOptions.HSetExOptionsBuilder
    extends java.lang.Object
    Builder class for HSetExOptions.
    • Method Detail

      • onlyIfAllExist

        public HSetExOptions.HSetExOptionsBuilder onlyIfAllExist()
        Sets the field conditional change to only set fields if all of them already exist.

        This is equivalent to the FXX option in the Valkey HSETEX command. When this option is used, the command will only update existing fields and will not create new fields.

        Returns:
        this builder instance for method chaining
        See Also:
        FieldConditionalChange.ONLY_IF_ALL_EXIST
      • onlyIfNoneExist

        public HSetExOptions.HSetExOptionsBuilder onlyIfNoneExist()
        Sets the field conditional change to only set fields if none of them already exist.

        This is equivalent to the FNX option in the Valkey HSETEX command. When this option is used, the command will only create new fields and will not update existing fields.

        Returns:
        this builder instance for method chaining
        See Also:
        FieldConditionalChange.ONLY_IF_NONE_EXIST
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object