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)
Wrap a function to timestamp it.
dataset/ETHPy150Open adamchainz/django-mysql/django_mysql/cache.py/MySQLCache.validate_key--crossover with--dataset/ETHPy150Open fabianp/memory_profiler/memory_profiler.py/TimeStamper.wrap_function