def validate_key(self, key):
if len(key) > <NUM_LIT>:<EOL><INDENT>raise ValueError(<EOL>"<STR_LIT>"<EOL>.format(key),<EOL>)<EOL><DEDENT>return super(MySQLCache, self).validate_key(key)<EOL>
Django normally warns about maximum key length, but we error on it.