pexpire(
name: KeyT,
time: ExpiryT,
nx: bool,
xx: bool,
gt: bool,
lt: bool
) → int
pExpire(
key: RedisArgument,
ms: number,
mode?: 'NX' | 'XX' | 'GT' | 'LT'
) → NumberReply
pexpire(
key: RedisKey,
milliseconds: number | string,
callback?: Callback<number>
) → Result<number, Context>
pexpire(
key: RedisKey,
milliseconds: number | string,
nx: "NX",
callback?: Callback<number>
) → Result<number, Context>
pexpire(
key: RedisKey,
milliseconds: number | string,
xx: "XX",
callback?: Callback<number>
) → Result<number, Context>
pexpire(
key: RedisKey,
milliseconds: number | string,
gt: "GT",
callback?: Callback<number>
) → Result<number, Context>
pexpire(
key: RedisKey,
milliseconds: number | string,
lt: "LT",
callback?: Callback<number>
) → Result<number, Context>
pexpire(
key: byte[],
milliseconds: long // time to expire
) → long // 1 if the timeout was set, 0 otherwise
pexpire(
key: byte[],
milliseconds: long, // time to expire
expiryOption: ExpiryOption // can be NX, XX, GT or LT
) → long // 1 if the timeout was set, 0 otherwise
pexpire(
key: String,
milliseconds: long // time to expire
) → long // 1 if the timeout was set, 0 otherwise
pexpire(
key: String,
milliseconds: long, // time to expire
expiryOption: ExpiryOption // can be NX, XX, GT or LT
) → long // 1 if the timeout was set, 0 otherwise
pexpire(
key: K, // the key.
milliseconds: long // the milliseconds.
) → Boolean // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
expireArgs: ExpireArgs // the expiry arguments.
) → Boolean // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: Duration // the milliseconds.
) → Boolean // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
expireArgs: ExpireArgs // the expiry arguments.
) → Boolean // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: long // the milliseconds.
) → RedisFuture<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
expireArgs: ExpireArgs // the expiry arguments.
) → RedisFuture<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: Duration // the milliseconds.
) → RedisFuture<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
expireArgs: ExpireArgs // the expiry arguments.
) → RedisFuture<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: long // the milliseconds.
) → Mono<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: long, // the milliseconds.
expireArgs: ExpireArgs // the expiry arguments.
) → Mono<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: Duration // the milliseconds.
) → Mono<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
key: K, // the key.
milliseconds: Duration, // the milliseconds.
expireArgs: ExpireArgs // the expiry arguments.
) → Mono<Boolean> // Boolean integer-reply specifically: true if the timeout was set. false if key does not exist or the timeout could not be set.
PExpire(
ctx: context.Context,
key: string,
expiration: time.Duration
) → *BoolCmd
KeyExpire(
key: RedisKey, // The key to set the expiration for.
expiry: TimeSpan?, // The timeout to set.
when: ExpireWhen, // In Redis 7+, we choose under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → bool // true if the timeout was set. false if key does not exist or the timeout could not be set.
KeyExpireAsync(
key: RedisKey, // The key to set the expiration for.
expiry: TimeSpan?, // The timeout to set.
when: ExpireWhen, // In Redis 7+, we choose under which condition the expiration will be set using ExpireWhen.
flags: CommandFlags // The flags to use for this operation.
) → Task<bool> // true if the timeout was set. false if key does not exist or the timeout could not be set.
pexpire(
$key: string,
$milliseconds: int,
$expireOption: string
) → int
pexpire(
key: String,
milliseconds: Integer, // time to live
nx: Boolean, // Set expiry only when the key has no expiry.
xx: Boolean, // Set expiry only when the key has an existing expiry.
gt: Boolean, // Set expiry only when the new expiry is greater than current one.
lt: Boolean // Set expiry only when the new expiry is less than current one.
) → Boolean // whether the timeout was set or not
No method signature available for this client.
No method signature available for this client.