(self, timeout)
Sets the expiry time (in seconds, relative to now) or ``None`` for
        unlimited time
        
        :param timeout: the expiry time in seconds or ``None``
Sets the expiry time (in seconds, relative to now) or ``None`` for
        unlimited time
        
        :param timeout: the expiry time in seconds or ``None``
Sets the expiry time ( in seconds relative to now ) or None for unlimited time : param timeout : the expiry time in seconds or None
def set_expiry(self, timeout):
        """Sets the expiry time (in seconds, relative to now) or ``None`` for
        unlimited time
        
        :param timeout: the expiry time in seconds or ``None``
        """
        if timeout is None:
            self._ttl = None
        else:
            self._ttl = time.time() + timeout
def set_expiry ( self , timeout ) : if timeout is None : self . _ttl = None else : self . _ttl = time . time ( ) + timeout