PamGram/apps/wiki/__init__.py

12 lines
293 B
Python
Raw Normal View History

2022-08-05 11:14:29 +00:00
from utils.apps.manager import listener_service
2022-07-30 13:00:40 +00:00
from utils.redisdb import RedisDB
2022-08-05 11:14:29 +00:00
from .cache import WikiCache
from .services import WikiService
2022-07-30 13:00:40 +00:00
@listener_service()
def create_wiki_service(redis: RedisDB):
_cache = WikiCache(redis)
_service = WikiService(_cache)
return _service