From c3c2d6b587b956bf4f7d71d1e01ca805314a7354 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B4=9B=E6=B0=B4=E5=B1=85=E5=AE=A4?= Date: Sat, 30 Jul 2022 21:00:40 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20=E5=88=9D=E5=A7=8B=E5=8C=96=20`wiki?= =?UTF-8?q?`=20=E6=9C=8D=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/wiki/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/wiki/__init__.py b/app/wiki/__init__.py index e69de29b..11849922 100644 --- a/app/wiki/__init__.py +++ b/app/wiki/__init__.py @@ -0,0 +1,11 @@ +from app.wiki.cache import WikiCache +from app.wiki.service import WikiService +from utils.app.manager import listener_service +from utils.redisdb import RedisDB + + +@listener_service() +def create_wiki_service(redis: RedisDB): + _cache = WikiCache(redis) + _service = WikiService(_cache) + return _service