(self, key: str)
return super().validate_key(key)
Django normally warns about maximum key length, but we error on it.
Django normally warns about maximum key length, but we error on it.
Django normally warns about maximum key length but we error on it .
def validate_key(self, key: str) -> None:
        """
        Django normally warns about maximum key length, but we error on it.
        """
        if len(key) > 250:
            raise ValueError(
                f"Cache key is longer than the maxmimum 250 characters: {key}"
            )
        return super().validate_key(key)
def validate_key ( self , key : str ) -> None : if len ( key ) > 250 : raise ValueError ( f"Cache key is longer than the maxmimum 250 characters: {key}" ) return super ( ) . validate_key ( key )