@@ -5126,9 +5126,8 @@ def hexpire(
5126
5126
lt: Set expiry only when the new expiry is less than the current one.
5127
5127
5128
5128
Returns:
5129
- If the key does not exist, returns an empty list. If the key exists, returns
5130
- a list which contains for each field in the request:
5131
- - `-2` if the field does not exist.
5129
+ Returns a list which contains for each field in the request:
5130
+ - `-2` if the field does not exist, or if the key does not exist.
5132
5131
- `0` if the specified NX | XX | GT | LT condition was not met.
5133
5132
- `1` if the expiration time was set or updated.
5134
5133
- `2` if the field was deleted because the specified expiration time is
@@ -5187,9 +5186,8 @@ def hpexpire(
5187
5186
lt: Set expiry only when the new expiry is less than the current one.
5188
5187
5189
5188
Returns:
5190
- If the key does not exist, returns an empty list. If the key exists, returns
5191
- a list which contains for each field in the request:
5192
- - `-2` if the field does not exist.
5189
+ Returns a list which contains for each field in the request:
5190
+ - `-2` if the field does not exist, or if the key does not exist.
5193
5191
- `0` if the specified NX | XX | GT | LT condition was not met.
5194
5192
- `1` if the expiration time was set or updated.
5195
5193
- `2` if the field was deleted because the specified expiration time is
@@ -5248,9 +5246,8 @@ def hexpireat(
5248
5246
lt: Set expiry only when the new expiry is less than the current one.
5249
5247
5250
5248
Returns:
5251
- If the key does not exist, returns an empty list. If the key exists, returns
5252
- a list which contains for each field in the request:
5253
- - `-2` if the field does not exist.
5249
+ Returns a list which contains for each field in the request:
5250
+ - `-2` if the field does not exist, or if the key does not exist.
5254
5251
- `0` if the specified NX | XX | GT | LT condition was not met.
5255
5252
- `1` if the expiration time was set or updated.
5256
5253
- `2` if the field was deleted because the specified expiration time is
@@ -5315,9 +5312,8 @@ def hpexpireat(
5315
5312
lt: Set expiry only when the new expiry is less than the current one.
5316
5313
5317
5314
Returns:
5318
- If the key does not exist, returns an empty list. If the key exists, returns
5319
- a list which contains for each field in the request:
5320
- - `-2` if the field does not exist.
5315
+ Returns a list which contains for each field in the request:
5316
+ - `-2` if the field does not exist, or if the key does not exist.
5321
5317
- `0` if the specified NX | XX | GT | LT condition was not met.
5322
5318
- `1` if the expiration time was set or updated.
5323
5319
- `2` if the field was deleted because the specified expiration time is
@@ -5362,9 +5358,8 @@ def hpersist(self, name: KeyT, *fields: str) -> ResponseT:
5362
5358
expiration time.
5363
5359
5364
5360
Returns:
5365
- If the key does not exist, returns an empty list. If the key exists, returns
5366
- a list which contains for each field in the request:
5367
- - `-2` if the field does not exist.
5361
+ Returns a list which contains for each field in the request:
5362
+ - `-2` if the field does not exist, or if the key does not exist.
5368
5363
- `-1` if the field exists but has no associated expiration time.
5369
5364
- `1` if the expiration time was successfully removed from the field.
5370
5365
"""
@@ -5382,9 +5377,8 @@ def hexpiretime(self, key: KeyT, *fields: str) -> ResponseT:
5382
5377
time.
5383
5378
5384
5379
Returns:
5385
- If the key does not exist, returns an empty list. If the key exists, returns
5386
- a list which contains for each field in the request:
5387
- - `-2` if the field does not exist.
5380
+ Returns a list which contains for each field in the request:
5381
+ - `-2` if the field does not exist, or if the key does not exist.
5388
5382
- `-1` if the field exists but has no associated expire time.
5389
5383
- A positive integer representing the expiration Unix timestamp in
5390
5384
seconds, if the field has an associated expiration time.
@@ -5405,9 +5399,8 @@ def hpexpiretime(self, key: KeyT, *fields: str) -> ResponseT:
5405
5399
time.
5406
5400
5407
5401
Returns:
5408
- If the key does not exist, returns an empty list. If the key exists, returns
5409
- a list which contains for each field in the request:
5410
- - `-2` if the field does not exist.
5402
+ Returns a list which contains for each field in the request:
5403
+ - `-2` if the field does not exist, or if the key does not exist.
5411
5404
- `-1` if the field exists but has no associated expire time.
5412
5405
- A positive integer representing the expiration Unix timestamp in
5413
5406
milliseconds, if the field has an associated expiration time.
@@ -5428,9 +5421,8 @@ def httl(self, key: KeyT, *fields: str) -> ResponseT:
5428
5421
fields: A list of fields within the hash for which to get the TTL.
5429
5422
5430
5423
Returns:
5431
- If the key does not exist, returns an empty list. If the key exists, returns
5432
- a list which contains for each field in the request:
5433
- - `-2` if the field does not exist.
5424
+ Returns a list which contains for each field in the request:
5425
+ - `-2` if the field does not exist, or if the key does not exist.
5434
5426
- `-1` if the field exists but has no associated expire time.
5435
5427
- A positive integer representing the TTL in seconds if the field has
5436
5428
an associated expiration time.
@@ -5451,9 +5443,8 @@ def hpttl(self, key: KeyT, *fields: str) -> ResponseT:
5451
5443
fields: A list of fields within the hash for which to get the TTL.
5452
5444
5453
5445
Returns:
5454
- If the key does not exist, returns an empty list. If the key exists, returns
5455
- a list which contains for each field in the request:
5456
- - `-2` if the field does not exist.
5446
+ Returns a list which contains for each field in the request:
5447
+ - `-2` if the field does not exist, or if the key does not exist.
5457
5448
- `-1` if the field exists but has no associated expire time.
5458
5449
- A positive integer representing the TTL in milliseconds if the field
5459
5450
has an associated expiration time.
0 commit comments