Class SetParams

java.lang.Object
redis.clients.jedis.params.Params
redis.clients.jedis.params.SetParams
All Implemented Interfaces:
IParams

public class SetParams extends Params implements IParams
  • Field Details

  • Constructor Details

    • SetParams

      public SetParams()
  • Method Details

    • setParams

      public static SetParams setParams()
    • ex

      public SetParams ex(long 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
    • exAt

      public SetParams exAt(long seconds)
      Set the specified Unix time at which the key will expire, in seconds.
      Parameters:
      seconds -
      Returns:
      SetParams
    • pxAt

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

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

      @Deprecated public SetParams get()
      Deprecated.
      Use setGet method (without setting get().
      Return the old value stored at key, or nil when key did not exist.
      Returns:
      SetParams
    • addParams

      public void addParams(CommandArguments args)
      Specified by:
      addParams in interface IParams