valkey-glide 2.1.0rc7__cp39-cp39-macosx_10_7_x86_64.whl → 2.1.0rc9__cp39-cp39-macosx_10_7_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of valkey-glide might be problematic. Click here for more details.

@@ -1120,7 +1120,7 @@ class CoreCommands(Protocol):
1120
1120
  - `-2`: field does not exist or key does not exist
1121
1121
 
1122
1122
  Examples:
1123
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EX, 10))
1123
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.SEC, 10))
1124
1124
  >>> await client.httl("my_hash", ["field1", "field2", "non_existent_field"])
1125
1125
  [9, 9, -2] # field1 and field2 have ~9 seconds left, non_existent_field doesn't exist
1126
1126
 
@@ -1150,7 +1150,7 @@ class CoreCommands(Protocol):
1150
1150
  - `-2`: field does not exist or key does not exist
1151
1151
 
1152
1152
  Examples:
1153
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.PX, 10000))
1153
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.MILLSEC, 10000))
1154
1154
  >>> await client.hpttl("my_hash", ["field1", "field2", "non_existent_field"])
1155
1155
  [9500, 9500, -2] # field1 and field2 have ~9500 milliseconds left, non_existent_field doesn't exist
1156
1156
 
@@ -1182,7 +1182,7 @@ class CoreCommands(Protocol):
1182
1182
  Examples:
1183
1183
  >>> import time
1184
1184
  >>> future_timestamp = int(time.time()) + 60 # 60 seconds from now
1185
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EXAT, future_timestamp))
1185
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.UNIX_SEC, future_timestamp))
1186
1186
  >>> await client.hexpiretime("my_hash", ["field1", "field2", "non_existent_field"])
1187
1187
  [future_timestamp, future_timestamp, -2] # field1 and field2 expire at future_timestamp, non_existent_field doesn't exist
1188
1188
 
@@ -1216,7 +1216,7 @@ class CoreCommands(Protocol):
1216
1216
  Examples:
1217
1217
  >>> import time
1218
1218
  >>> future_timestamp_ms = int(time.time() * 1000) + 60000 # 60 seconds from now in milliseconds
1219
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.PXAT, future_timestamp_ms))
1219
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.UNIX_MILLSEC, future_timestamp_ms))
1220
1220
  >>> await client.hpexpiretime("my_hash", ["field1", "field2", "non_existent_field"])
1221
1221
  [future_timestamp_ms, future_timestamp_ms, -2] # field1 and field2 expire at future_timestamp_ms, non_existent_field doesn't exist
1222
1222
 
@@ -1249,17 +1249,17 @@ class CoreCommands(Protocol):
1249
1249
  - ONLY_IF_ALL_EXIST (FXX): Only set fields if all of them already exist.
1250
1250
  - ONLY_IF_NONE_EXIST (FNX): Only set fields if none of them already exist.
1251
1251
  expiry (Optional[ExpirySet]): Expiration options for the fields:
1252
- - EX: Expiration time in seconds.
1253
- - PX: Expiration time in milliseconds.
1254
- - EXAT: Absolute expiration time in seconds (Unix timestamp).
1255
- - PXAT: Absolute expiration time in milliseconds (Unix timestamp).
1256
- - KEEPTTL: Retain existing TTL.
1252
+ - SEC (EX): Expiration time in seconds.
1253
+ - MILLSEC (PX): Expiration time in milliseconds.
1254
+ - UNIX_SEC (EXAT): Absolute expiration time in seconds (Unix timestamp).
1255
+ - UNIX_MILLSEC (PXAT): Absolute expiration time in milliseconds (Unix timestamp).
1256
+ - KEEP_TTL (KEEPTTL): Retain existing TTL.
1257
1257
 
1258
1258
  Returns:
1259
1259
  int: 1 if all fields were set successfully, 0 if none were set due to conditional constraints.
1260
1260
 
1261
1261
  Examples:
1262
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EX, 10))
1262
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.SEC, 10))
1263
1263
  1 # All fields set with 10 second expiration
1264
1264
  >>> await client.hsetex("my_hash", {"field3": "value3"}, field_conditional_change=HashFieldConditionalChange.ONLY_IF_ALL_EXIST)
1265
1265
  1 # Field set because field already exists
@@ -1305,10 +1305,10 @@ class CoreCommands(Protocol):
1305
1305
  key (TEncodable): The key of the hash.
1306
1306
  fields (List[TEncodable]): The list of fields to retrieve from the hash.
1307
1307
  expiry (Optional[ExpiryGetEx]): Expiration options for the retrieved fields:
1308
- - EX: Expiration time in seconds.
1309
- - PX: Expiration time in milliseconds.
1310
- - EXAT: Absolute expiration time in seconds (Unix timestamp).
1311
- - PXAT: Absolute expiration time in milliseconds (Unix timestamp).
1308
+ - SEC (EX): Expiration time in seconds.
1309
+ - MILLSEC (PX): Expiration time in milliseconds.
1310
+ - UNIX_SEC (EXAT): Absolute expiration time in seconds (Unix timestamp).
1311
+ - UNIX_MILLSEC (PXAT): Absolute expiration time in milliseconds (Unix timestamp).
1312
1312
  - PERSIST: Remove expiration from the fields.
1313
1313
 
1314
1314
  Returns:
@@ -1317,10 +1317,10 @@ class CoreCommands(Protocol):
1317
1317
  If `key` does not exist, it is treated as an empty hash, and the function returns a list of null values.
1318
1318
 
1319
1319
  Examples:
1320
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EX, 10))
1320
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.SEC, 10))
1321
1321
  >>> await client.hgetex("my_hash", ["field1", "field2"])
1322
1322
  [b"value1", b"value2"]
1323
- >>> await client.hgetex("my_hash", ["field1"], expiry=ExpiryGetEx(ExpiryTypeGetEx.EX, 20))
1323
+ >>> await client.hgetex("my_hash", ["field1"], expiry=ExpiryGetEx(ExpiryTypeGetEx.SEC, 20))
1324
1324
  [b"value1"] # field1 now has 20 second expiration
1325
1325
  >>> await client.hgetex("my_hash", ["field1"], expiry=ExpiryGetEx(ExpiryTypeGetEx.PERSIST, None))
1326
1326
  [b"value1"] # field1 expiration removed
@@ -1374,7 +1374,7 @@ class CoreCommands(Protocol):
1374
1374
  - `2`: Field was deleted immediately (when seconds is 0 or timestamp is in the past).
1375
1375
 
1376
1376
  Examples:
1377
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EX, 10))
1377
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.SEC, 10))
1378
1378
  >>> await client.hexpire("my_hash", 20, ["field1", "field2"])
1379
1379
  [1, 1] # Both fields' expiration set to 20 seconds
1380
1380
  >>> await client.hexpire("my_hash", 30, ["field1"], option=ExpireOptions.NewExpiryGreaterThanCurrent)
@@ -1420,7 +1420,7 @@ class CoreCommands(Protocol):
1420
1420
  - `-2`: Field does not exist or key does not exist.
1421
1421
 
1422
1422
  Examples:
1423
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EX, 10))
1423
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.SEC, 10))
1424
1424
  >>> await client.hpersist("my_hash", ["field1", "field2"])
1425
1425
  [1, 1] # Both fields made persistent
1426
1426
  >>> await client.hpersist("my_hash", ["field1"])
@@ -1467,7 +1467,7 @@ class CoreCommands(Protocol):
1467
1467
  - `2`: Field was deleted immediately (when milliseconds is 0 or timestamp is in the past).
1468
1468
 
1469
1469
  Examples:
1470
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.PX, 10000))
1470
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.MILLSEC, 10000))
1471
1471
  >>> await client.hpexpire("my_hash", 20000, ["field1", "field2"])
1472
1472
  [1, 1] # Both fields' expiration set to 20000 milliseconds
1473
1473
  >>> await client.hpexpire("my_hash", 30000, ["field1"], option=ExpireOptions.NewExpiryGreaterThanCurrent)
@@ -1528,7 +1528,7 @@ class CoreCommands(Protocol):
1528
1528
  Examples:
1529
1529
  >>> import time
1530
1530
  >>> future_timestamp = int(time.time()) + 60 # 60 seconds from now
1531
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.EX, 10))
1531
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.SEC, 10))
1532
1532
  >>> await client.hexpireat("my_hash", future_timestamp, ["field1", "field2"])
1533
1533
  [1, 1] # Both fields' expiration set to future_timestamp
1534
1534
  >>> past_timestamp = int(time.time()) - 60 # 60 seconds ago
@@ -1588,7 +1588,7 @@ class CoreCommands(Protocol):
1588
1588
  Examples:
1589
1589
  >>> import time
1590
1590
  >>> future_timestamp_ms = int(time.time() * 1000) + 60000 # 60 seconds from now in milliseconds
1591
- >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.PX, 10000))
1591
+ >>> await client.hsetex("my_hash", {"field1": "value1", "field2": "value2"}, expiry=ExpirySet(ExpiryType.MILLSEC, 10000))
1592
1592
  >>> await client.hpexpireat("my_hash", future_timestamp_ms, ["field1", "field2"])
1593
1593
  [1, 1] # Both fields' expiration set to future_timestamp_ms
1594
1594
  >>> past_timestamp_ms = int(time.time() * 1000) - 60000 # 60 seconds ago in milliseconds
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: valkey-glide
3
- Version: 2.1.0rc7
3
+ Version: 2.1.0rc9
4
4
  Classifier: Topic :: Database
5
5
  Classifier: Topic :: Utilities
6
6
  Classifier: License :: OSI Approved :: Apache Software License
@@ -1,9 +1,9 @@
1
- valkey_glide-2.1.0rc7.dist-info/METADATA,sha256=Y637K43PWKgeTI3ADyJrURJHErFeY82bqYW37dYUO5g,6978
2
- valkey_glide-2.1.0rc7.dist-info/WHEEL,sha256=kxRQgO-9X4EIrYLE-fC2JS8QwTM1uJIsKFG0hiDIeZo,105
1
+ valkey_glide-2.1.0rc9.dist-info/METADATA,sha256=WIAt07af8SjYV7rA0_el-wtnYcaT0yluKGnLDFWPyaA,6978
2
+ valkey_glide-2.1.0rc9.dist-info/WHEEL,sha256=kxRQgO-9X4EIrYLE-fC2JS8QwTM1uJIsKFG0hiDIeZo,105
3
3
  glide/async_commands/glide_json.py,sha256=H5dnB4vJkGPpNXJZhhVyPQoTSbkN_chq5Xw6tkP0wMQ,60410
4
4
  glide/async_commands/ft.py,sha256=1v96sBCgiXtPbj85ZurY3ruLCmok3cPoaIXSiJBEv9Y,16849
5
5
  glide/async_commands/__init__.py,sha256=_tbTAFATlzp4L2qe-H77PpAQK-16VsV-y7uKNUKLC_o,136
6
- glide/async_commands/core.py,sha256=RdfOTxpvgY4sQsSL3PqHi-05CV_AmDhsZad-ALg4EHU,328057
6
+ glide/async_commands/core.py,sha256=csbFWNGqduOgFsL378LYynLqHZURAYoewdKmmsrFsTs,328186
7
7
  glide/async_commands/standalone_commands.py,sha256=6oPesnC8WK816JbBySUZ9dSXPbdtN0dvd8rRde646NQ,40364
8
8
  glide/async_commands/cluster_commands.py,sha256=Lji6eo2LaoXwy4Ha3e6bcGOHyMQHdDBiSQLt1kf9gGo,60129
9
9
  glide/__init__.py,sha256=r0VyTcuIdVzXTTZW6TmWwCsTCIg54ciyba1iDM8PFVQ,7055
@@ -35,5 +35,5 @@ glide_shared/protobuf/connection_request_pb2.py,sha256=b3jDmMetSHUrZGmQd8b5DooZZ
35
35
  glide_shared/protobuf/response_pb2.py,sha256=oT2GHUwjrxvBVdINRKCvb3_BFN0Fq2wqwHbTj7KAX2E,2110
36
36
  glide_shared/protobuf_codec.py,sha256=xwt4-D4WbvNIY_vjOd-00c73HOyNjWq7nN-Z718PBVA,3667
37
37
  glide_shared/routes.py,sha256=HFccxCzXQXSi6Y1HFsRUm9ZcbJgCrar6y6uOWpGJWe0,4746
38
- glide/glide.cpython-39-darwin.so,sha256=nEyUuT8evQcq2ArhlE5gj5jVBaRZCfT_-2FNsyBGS7k,11432472
39
- valkey_glide-2.1.0rc7.dist-info/RECORD,,
38
+ glide/glide.cpython-39-darwin.so,sha256=ykVqPies7yQpk8taluj9soac4dDLj3tn5x-YdGMhIkc,11432496
39
+ valkey_glide-2.1.0rc9.dist-info/RECORD,,