From 773ed19ff3d0cf9b418493dd39493286b06cd5a5 Mon Sep 17 00:00:00 2001 From: ItayTheDar Date: Mon, 17 Jul 2023 20:25:24 +0300 Subject: [PATCH] update docs --- README.md | 2 ++ docs/installation.md | 2 ++ 2 files changed, 4 insertions(+) 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