def __init__(self, maxsize: Optional[int] = None) -> None:
        """Initialize the ValidationCache.

        Args:
            maxsize: Set the maxsize of the cache. If `maxsize` is set to `None` then the
                cache will grow without bound.

        More info: https://docs.python.org/3/library/functools.html#functools.lru_cache
        """
        from strawberry.schema.schema import validate_document

        self.cached_validate_document = lru_cache(maxsize=maxsize)(validate_document)
Initialize the ValidationCache.

        Args:
            maxsize: Set the maxsize of the cache. If `maxsize` is set to `None` then the
                cache will grow without bound.

        More info: https://docs.python.org/3/library/functools.html#functools.lru_cache
        
strawberry/extensions/validation_cache.py