diff --git a/README.md b/README.md index 239f636..0487b0f 100644 --- a/README.md +++ b/README.md @@ -239,8 +239,10 @@ from src.products.products_model import Product from src.products.products_entity import Product as ProductEntity from orm_config import config from nest.core.decorators import db_request_handler +from functools import lru_cache +@lru_cache() class ProductsService: def __init__(self): self.config = config diff --git a/docs/installation.md b/docs/installation.md index 942957f..425576b 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -217,8 +217,10 @@ from src.products.products_model import Product from src.products.products_entity import Product as ProductEntity from orm_config import config from nest.core.decorators import db_request_handler +from functools import lru_cache +@lru_cache() class ProductsService: def __init__(self): self.config = config