mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-28 10:41:48 +00:00
12 lines
293 B
Python
12 lines
293 B
Python
from utils.apps.manager import listener_service
|
|
from utils.redisdb import RedisDB
|
|
from .cache import WikiCache
|
|
from .services import WikiService
|
|
|
|
|
|
@listener_service()
|
|
def create_wiki_service(redis: RedisDB):
|
|
_cache = WikiCache(redis)
|
|
_service = WikiService(_cache)
|
|
return _service
|