Class SetParams


  • public class SetParams
    extends java.lang.Object
    Parameters for SET command in Jedis compatibility layer. Provides a fluent API for setting expiration and conditional set options.
    • Constructor Detail

      • SetParams

        public SetParams()
    • Method Detail

      • setParams

        public static SetParams setParams()
      • nx

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

        public SetParams xx()
        Only set the key if it already exists.
      • ex

        public SetParams ex​(long seconds)
        Set the specified expire time, in seconds.
      • px

        public SetParams px​(long milliseconds)
        Set the specified expire time, in milliseconds.
      • exAt

        public SetParams exAt​(long unixTimeSeconds)
        Set the specified Unix time at which the key will expire, in seconds.
      • pxAt

        public SetParams pxAt​(long unixTimeMilliseconds)
        Set the specified Unix time at which the key will expire, in milliseconds.
      • keepTtl

        public SetParams keepTtl()
        Retain the time to live associated with the key.
      • get

        public SetParams get()
        Return the old string stored at key, or null if key did not exist.
      • getExpirationValue

        public java.lang.Long getExpirationValue()
      • isGet

        public boolean isGet()