Class SetParams


  • public class SetParams
    extends Params
    • Constructor Detail

      • SetParams

        public SetParams()
    • Method Detail

      • setParams

        public static SetParams setParams()
      • ex

        public SetParams ex​(int secondsToExpire)
        Set the specified expire time, in seconds.
        Parameters:
        secondsToExpire -
        Returns:
        SetParams
      • px

        public SetParams px​(long millisecondsToExpire)
        Set the specified expire time, in milliseconds.
        Parameters:
        millisecondsToExpire -
        Returns:
        SetParams
      • nx

        public SetParams nx()
        Only set the key if it does not already exist.
        Returns:
        SetParams
      • xx

        public SetParams xx()
        Only set the key if it already exist.
        Returns:
        SetParams
      • keepttl

        public SetParams keepttl()
        Retain the time to live associated with the key.
        Returns:
        SetParams
      • get

        public SetParams get()
        Return the old value stored at key, or nil when key did not exist.
        Returns:
        SetParams
      • getByteParams

        public byte[][] getByteParams​(byte[]... args)