Class SetArgs

    • Constructor Detail

      • SetArgs

        public SetArgs()
        Deprecated.
    • Method Detail

      • ex

        public SetArgs ex​(long timeout)
        Deprecated.
        Set the specified expire time, in seconds.
        Overrides:
        ex in class SetArgs
        Parameters:
        timeout - expire time in seconds.
        Returns:
        the current GetExArgs
      • ex

        public SetArgs ex​(Duration timeout)
        Deprecated.
        Sets the expiration.
        Overrides:
        ex in class SetArgs
        Parameters:
        timeout - expire time in seconds.
        Returns:
        the current GetExArgs
      • exAt

        public SetArgs exAt​(long timestamp)
        Deprecated.
        Sets the expiration time
        Overrides:
        exAt in class SetArgs
        Parameters:
        timestamp - the timestamp
        Returns:
        the current GetExArgs
      • exAt

        public SetArgs exAt​(Instant timestamp)
        Deprecated.
        Sets the expiration time
        Overrides:
        exAt in class SetArgs
        Parameters:
        timestamp - the timestamp type: posix time in seconds.
        Returns:
        the current GetExArgs
      • px

        public SetArgs px​(long timeout)
        Deprecated.
        Set the specified expire time, in milliseconds.
        Overrides:
        px in class SetArgs
        Parameters:
        timeout - expire time in milliseconds.
        Returns:
        the current GetExArgs
      • px

        public SetArgs px​(Duration timeout)
        Deprecated.
        Set the specified expire time, in milliseconds.
        Overrides:
        px in class SetArgs
        Parameters:
        timeout - expire time in milliseconds.
        Returns:
        the current GetExArgs
      • pxAt

        public SetArgs pxAt​(long timestamp)
        Deprecated.
        Set the specified Unix time at which the key will expire, in milliseconds.
        Overrides:
        pxAt in class SetArgs
        Parameters:
        timestamp - the timestamp
        Returns:
        the current GetExArgs
      • pxAt

        public SetArgs pxAt​(Instant timestamp)
        Deprecated.
        Set the specified Unix time at which the key will expire, in milliseconds.
        Overrides:
        pxAt in class SetArgs
        Parameters:
        timestamp - the timestamp
        Returns:
        the current SetArgs
      • nx

        public SetArgs nx()
        Deprecated.
        Only set the key if it does not already exist.
        Overrides:
        nx in class SetArgs
        Returns:
        the current SetArgs
      • keepttl

        public SetArgs keepttl()
        Deprecated.
        Set the value and retain the existing TTL.
        Overrides:
        keepttl in class SetArgs
        Returns:
        the current SetArgs
      • xx

        public SetArgs xx()
        Deprecated.
        Only set the key if it already exists.
        Overrides:
        xx in class SetArgs
        Returns:
        the current SetArgs
      • get

        public SetArgs get()
        Deprecated.
        Return the old string stored at key, or nil if key did not exist. An error is returned and SET aborted if the value stored at key is not a string.
        Overrides:
        get in class SetArgs
        Returns:
        the current SetArgs