All Downloads are FREE. Search and download functionalities are using the official Maven repository.

redis.clients.jedis.params.HGetExParams Maven / Gradle / Ivy

There is a newer version: 6.0.0-beta2
Show newest version
package redis.clients.jedis.params;

/**
 * HGetExParams is a parameter class used when getting values of given keys in hash data with 
 * optionally setting/changing expiry time in Redis.
 * It can be used to set the expiry time of the key in seconds or milliseconds.
 * 
 * 

This class includes the following methods:

*
    *
  • {@link #hGetExParams()} - Static factory method to create a new instance of HGetExParams.
  • *
  • {@link #ex(long)} - Set the specified expire time, in seconds.
  • *
  • {@link #px(long)} - Set the specified expire time, in milliseconds.
  • *
  • {@link #exAt(long)} - Set the specified Unix(epoch) time at which the key will expire, in seconds.
  • *
  • {@link #pxAt(long)} - Set the specified Unix(epoch) time at which the key will expire, in milliseconds.
  • *
  • {@link #persist()} - Remove the time-to-live associated with the key.
  • *
* *

Example usage:

*
 * {@code
 * HGetExParams params = HGetExParams.hGetExParams().persist();
 * }
 * 
* * @see BaseGetExParams */ public class HGetExParams extends BaseGetExParams { public static HGetExParams hGetExParams() { return new HGetExParams(); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy