params/HGetExParams.java

jedis · src/main/java/redis/clients/jedis/params/HGetExParams.java · java · MIT
database

Parameter class for Redis hash get with expiry operations.

// Source: https://github.com/redis/jedis | License: MIT | Copyright 2021-2023, Redis, inc
// Provided via justclaw.it.com; keep this notice with the code.
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.
 * 
 * <p>This class includes the following methods:</p>
 * <ul>
 *   <li>{@link #hGetExParams()} - Static factory method to create a new instance of HGetExParams.</li>
 *   <li>{@link #ex(long)} - Set the specified expire time, in seconds.</li>
 *   <li>{@link #px(long)} - Set the specified expire time, in milliseconds.</li>
 *   <li>{@link #exAt(long)} - Set the specifie

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key