Class GetExArgs

    • Constructor Detail

      • GetExArgs

        public GetExArgs()
    • Method Detail

      • ex

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

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

        public GetExArgs exAt​(long timestamp)
        Sets the expiration time
        Parameters:
        timestamp - the timestamp
        Returns:
        the current GetExArgs
      • exAt

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

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

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

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

        public GetExArgs pxAt​(Instant timestamp)
        Set the specified Unix time at which the key will expire, in milliseconds.
        Parameters:
        timestamp - the timestamp
        Returns:
        the current GetExArgs
      • persist

        public GetExArgs persist()
        Sets PERSIST
        Returns:
        the current GetExArgs