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