@@ -44,7 +44,7 @@ def mset(
44
44
client = None ,
45
45
nx = False ,
46
46
atomic = True ,
47
- ) -> None :
47
+ ) -> bool | list [ bool ] :
48
48
"""
49
49
Access valkey's mset method.
50
50
it is important to take care of cluster limitations mentioned here: https://valkey-py.readthedocs.io/en/latest/clustering.html#multi-key-commands
@@ -62,15 +62,15 @@ def mset(
62
62
except _main_exceptions as e :
63
63
raise ConnectionInterrupted (connection = client ) from e
64
64
65
- set_many = mset
66
-
67
- def msetnx (self , data : Dict [KeyT , EncodableT ], version = None , client = None ):
65
+ def msetnx (self , data : Dict [KeyT , EncodableT ], version = None , client = None ) -> bool :
68
66
try :
69
67
return self .mset (data , version = version , client = client , nx = True )
70
68
except _main_exceptions as e :
71
69
raise ConnectionInterrupted (connection = client ) from e
72
70
73
- def mset_nonatomic (self , data : Dict [KeyT , EncodableT ], version = None , client = None ):
71
+ def mset_nonatomic (
72
+ self , data : Dict [KeyT , EncodableT ], version = None , client = None
73
+ ) -> list [bool ]:
74
74
try :
75
75
return self .mset (data , version = version , client = client , atomic = False )
76
76
except _main_exceptions as e :
0 commit comments