code: async def expire(self, name, time):
          
          if isinstance(time, datetime.timedelta):
              time = time.seconds + time.days * 24 * 3600
          return await self.execute_command('EXPIRE', name, time)
docs: Set an expire flag on key ``name`` for ``time`` seconds. ``time``
          can be represented by an integer or a Python timedelta object.