@@ -5119,9 +5119,8 @@ def hexpire(
5119
5119
lt: Set expiry only when the new expiry is less than the current one.
5120
5120
5121
5121
Returns:
5122
- If the key does not exist, returns an empty list. If the key exists, returns
5123
- a list which contains for each field in the request:
5124
- - `-2` if the field does not exist.
5122
+ Returns a list which contains for each field in the request:
5123
+ - `-2` if the field does not exist, or if the key does not exist.
5125
5124
- `0` if the specified NX | XX | GT | LT condition was not met.
5126
5125
- `1` if the expiration time was set or updated.
5127
5126
- `2` if the field was deleted because the specified expiration time is
@@ -5180,9 +5179,8 @@ def hpexpire(
5180
5179
lt: Set expiry only when the new expiry is less than the current one.
5181
5180
5182
5181
Returns:
5183
- If the key does not exist, returns an empty list. If the key exists, returns
5184
- a list which contains for each field in the request:
5185
- - `-2` if the field does not exist.
5182
+ Returns a list which contains for each field in the request:
5183
+ - `-2` if the field does not exist, or if the key does not exist.
5186
5184
- `0` if the specified NX | XX | GT | LT condition was not met.
5187
5185
- `1` if the expiration time was set or updated.
5188
5186
- `2` if the field was deleted because the specified expiration time is
@@ -5241,9 +5239,8 @@ def hexpireat(
5241
5239
lt: Set expiry only when the new expiry is less than the current one.
5242
5240
5243
5241
Returns:
5244
- If the key does not exist, returns an empty list. If the key exists, returns
5245
- a list which contains for each field in the request:
5246
- - `-2` if the field does not exist.
5242
+ Returns a list which contains for each field in the request:
5243
+ - `-2` if the field does not exist, or if the key does not exist.
5247
5244
- `0` if the specified NX | XX | GT | LT condition was not met.
5248
5245
- `1` if the expiration time was set or updated.
5249
5246
- `2` if the field was deleted because the specified expiration time is
@@ -5308,9 +5305,8 @@ def hpexpireat(
5308
5305
lt: Set expiry only when the new expiry is less than the current one.
5309
5306
5310
5307
Returns:
5311
- If the key does not exist, returns an empty list. If the key exists, returns
5312
- a list which contains for each field in the request:
5313
- - `-2` if the field does not exist.
5308
+ Returns a list which contains for each field in the request:
5309
+ - `-2` if the field does not exist, or if the key does not exist.
5314
5310
- `0` if the specified NX | XX | GT | LT condition was not met.
5315
5311
- `1` if the expiration time was set or updated.
5316
5312
- `2` if the field was deleted because the specified expiration time is
@@ -5355,9 +5351,8 @@ def hpersist(self, name: KeyT, *fields: str) -> ResponseT:
5355
5351
expiration time.
5356
5352
5357
5353
Returns:
5358
- If the key does not exist, returns an empty list. If the key exists, returns
5359
- a list which contains for each field in the request:
5360
- - `-2` if the field does not exist.
5354
+ Returns a list which contains for each field in the request:
5355
+ - `-2` if the field does not exist, or if the key does not exist.
5361
5356
- `-1` if the field exists but has no associated expiration time.
5362
5357
- `1` if the expiration time was successfully removed from the field.
5363
5358
"""
@@ -5375,9 +5370,8 @@ def hexpiretime(self, key: KeyT, *fields: str) -> ResponseT:
5375
5370
time.
5376
5371
5377
5372
Returns:
5378
- If the key does not exist, returns an empty list. If the key exists, returns
5379
- a list which contains for each field in the request:
5380
- - `-2` if the field does not exist.
5373
+ Returns a list which contains for each field in the request:
5374
+ - `-2` if the field does not exist, or if the key does not exist.
5381
5375
- `-1` if the field exists but has no associated expire time.
5382
5376
- A positive integer representing the expiration Unix timestamp in
5383
5377
seconds, if the field has an associated expiration time.
@@ -5396,9 +5390,8 @@ def hpexpiretime(self, key: KeyT, *fields: str) -> ResponseT:
5396
5390
time.
5397
5391
5398
5392
Returns:
5399
- If the key does not exist, returns an empty list. If the key exists, returns
5400
- a list which contains for each field in the request:
5401
- - `-2` if the field does not exist.
5393
+ Returns a list which contains for each field in the request:
5394
+ - `-2` if the field does not exist, or if the key does not exist.
5402
5395
- `-1` if the field exists but has no associated expire time.
5403
5396
- A positive integer representing the expiration Unix timestamp in
5404
5397
milliseconds, if the field has an associated expiration time.
@@ -5417,9 +5410,8 @@ def httl(self, key: KeyT, *fields: str) -> ResponseT:
5417
5410
fields: A list of fields within the hash for which to get the TTL.
5418
5411
5419
5412
Returns:
5420
- If the key does not exist, returns an empty list. If the key exists, returns
5421
- a list which contains for each field in the request:
5422
- - `-2` if the field does not exist.
5413
+ Returns a list which contains for each field in the request:
5414
+ - `-2` if the field does not exist, or if the key does not exist.
5423
5415
- `-1` if the field exists but has no associated expire time.
5424
5416
- A positive integer representing the TTL in seconds if the field has
5425
5417
an associated expiration time.
@@ -5438,9 +5430,8 @@ def hpttl(self, key: KeyT, *fields: str) -> ResponseT:
5438
5430
fields: A list of fields within the hash for which to get the TTL.
5439
5431
5440
5432
Returns:
5441
- If the key does not exist, returns an empty list. If the key exists, returns
5442
- a list which contains for each field in the request:
5443
- - `-2` if the field does not exist.
5433
+ Returns a list which contains for each field in the request:
5434
+ - `-2` if the field does not exist, or if the key does not exist.
5444
5435
- `-1` if the field exists but has no associated expire time.
5445
5436
- A positive integer representing the TTL in milliseconds if the field
5446
5437
has an associated expiration time.
0 commit comments