hpexpire(
name: KeyT,
milliseconds: ExpiryT,
*fields: str,
nx: bool = False,
xx: bool = False,
gt: bool = False,
lt: bool = False
) → ResponseT
HPEXPIRE(
key: RedisArgument,
fields: RedisVariadicArgument,
ms: number,
mode?: 'NX' | 'XX' | 'GT' | 'LT'
) → Any
hpexpire(
key: byte[],
milliseconds: long,
fields: byte[]...
) → List<Long>
hpexpire(
key: byte[],
milliseconds: long,
condition: ExpiryOption,
fields: byte[]...
) → List<Long>
hpexpire(
key: String,
milliseconds: long,
fields: String...
) → List<Long>
hpexpire(
key: String,
milliseconds: long,
condition: ExpiryOption,
fields: String...
) → List<Long>
hpexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
fields: K... // one or more fields to set the TTL for.
) → List<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
expireArgs: ExpireArgs, // the expiry arguments.
fields: K... // one or more fields to set the TTL for.
) → List<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
fields: K... // one or more fields to set the TTL for.
) → List<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
expireArgs: ExpireArgs, // the expiry arguments.
fields: K... // one or more fields to set the TTL for.
) → List<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
fields: K... // one or more fields to set the TTL for.
) → RedisFuture<List<Long>> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
expireArgs: ExpireArgs, // the expiry arguments.
fields: K... // one or more fields to set the TTL for.
) → RedisFuture<List<Long>> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
fields: K... // one or more fields to set the TTL for.
) → RedisFuture<List<Long>> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
expireArgs: ExpireArgs, // the expiry arguments.
fields: K... // one or more fields to set the TTL for.
) → RedisFuture<List<Long>> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
fields: K... // one or more fields to set the TTL for.
) → Flux<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
expireArgs: ExpireArgs, // the expiry arguments.
fields: K... // one or more fields to set the TTL for.
) → Flux<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
fields: K... // one or more fields to set the TTL for.
) → Flux<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
hpexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
expireArgs: ExpireArgs, // the expiry arguments.
fields: K... // one or more fields to set the TTL for.
) → Flux<Long> // a list of Long values for each of the fields provided: 2 indicating the specific field is deleted already due to expiration, or provided expiry interval is 0; 1 indicating expiration time is set/updated; 0 indicating the expiration time is not set (a provided NX | XX | GT | LT condition is not met); -2 indicating there is no such field @since 6.4
HPExpire(
ctx: context.Context,
key: string,
expiration: time.Duration,
fields: ...string
) → *IntSliceCmd
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: TimeSpan, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: DateTime, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: TimeSpan, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: DateTime, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: TimeSpan, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: DateTime, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: TimeSpan, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
HashFieldExpire(
key: RedisKey, // The key of the hash.
hashFields: RedisValue[], // The fields in the hash to set expire time.
expiry: DateTime, // The exact date to expiry to set.
when: ExpireWhen, // under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → ExpireResult[] // Empty array if the key does not exist. Otherwise, returns an array where each item is the result of operation for given fields: <list type="table"> <listheader> <term>Result</term> <description>Description</description> </listheader> <item> <term>2</term> <description>Field deleted because the specified expiration time is due.</description> </item> <item> <term>1</term> <description>Expiration time set/updated.</description> </item> <item> <term>0</term> <description>Expiration time is not set/update (a specified ExpireWhen condition is not met).</description> </item> <item> <term>-1</term> <description>No such field exists.</description> </item> </list>
hpexpire(
$key: string,
$milliseconds: int,
$fields: array,
string $flag = null: Any
) → array|null
hpexpire(
key: K,
milliseconds: i64,
opt: ExpireOption,
fields: F
) → (Vec<IntegerReplyOrNoOp>)
hpexpire_at(
key: K,
ts: i64,
opt: ExpireOption,
fields: F
) → (Vec<IntegerReplyOrNoOp>)
hpexpire(
key: K,
milliseconds: i64,
opt: ExpireOption,
fields: F
) → (Vec<IntegerReplyOrNoOp>)
hpexpire_at(
key: K,
ts: i64,
opt: ExpireOption,
fields: F
) → (Vec<IntegerReplyOrNoOp>)