mirror of
https://github.com/PaiGramTeam/PamGram.git
synced 2024-11-16 20:10:36 +00:00
12 lines
307 B
Python
12 lines
307 B
Python
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
|