code: def setex(self, name, time, value):
          
          if not self.strict:
              # when not strict mode swap value and time args order
              time, value = value, time
          return self.set(name, value, ex=time)
docs: Set the value of ``name`` to ``value`` that expires in ``time``
          seconds. ``time`` can be represented by an integer or a Python
          timedelta object.