strawberry.extensions.ParserCache
Add LRU caching the parsing step during execution to improve performance.
Example:
Constructor:
Initialize the ParserCache.
Signature:
Parameters:
-
maxsize:
Set the maxsize of the cache. If
maxsize
is set toNone
then the cache will grow without bound. More info: https://docs.python.org/3/library/functools.html#functools.lru_cache- Type
-
int | None
- Default
-
None
Methods:
-
on_parse
Signature:
Attributes:
-
cached_parse_document: