@@ -118,9 +118,9 @@ def expire(self, key: CommandItem, seconds: int, *args: bytes) -> int:
118118 res = self ._expireat (key , self ._db .time + seconds , * args )
119119 return res
120120
121- @command (name = "EXPIREAT" , fixed = (Key (), Int ))
122- def expireat (self , key : CommandItem , timestamp : int ) -> int :
123- return self ._expireat (key , float (timestamp ))
121+ @command (name = "EXPIREAT" , fixed = (Key (), Int ), repeat = ( bytes ,) )
122+ def expireat (self , key : CommandItem , timestamp : int , * args : bytes ) -> int :
123+ return self ._expireat (key , float (timestamp ), * args )
124124
125125 @command (name = "KEYS" , fixed = (bytes ,))
126126 def keys (self , pattern : bytes ) -> List [bytes ]:
@@ -148,13 +148,13 @@ def persist(self, key: CommandItem) -> int:
148148 key .expireat = None
149149 return 1
150150
151- @command (name = "PEXPIRE" , fixed = (Key (), Int ))
152- def pexpire (self , key : CommandItem , ms : int ) -> int :
153- return self ._expireat (key , self ._db .time + ms / 1000.0 )
151+ @command (name = "PEXPIRE" , fixed = (Key (), Int ), repeat = ( bytes ,) )
152+ def pexpire (self , key : CommandItem , ms : int , * args : bytes ) -> int :
153+ return self ._expireat (key , self ._db .time + ms / 1000.0 , * args )
154154
155- @command (name = "PEXPIREAT" , fixed = (Key (), Int ))
156- def pexpireat (self , key : CommandItem , ms_timestamp : int ) -> int :
157- return self ._expireat (key , ms_timestamp / 1000.0 )
155+ @command (name = "PEXPIREAT" , fixed = (Key (), Int ), repeat = ( bytes ,) )
156+ def pexpireat (self , key : CommandItem , ms_timestamp : int , * args : bytes ) -> int :
157+ return self ._expireat (key , ms_timestamp / 1000.0 , * args )
158158
159159 @command (name = "PTTL" , fixed = (Key (),))
160160 def pttl (self , key : CommandItem ) -> int :
0 commit comments