PaiGram/app/wiki/__init__.py

12 lines
307 B
Python
Raw Normal View History

2022-07-30 13:00:40 +00:00
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