mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-26 02:11:03 +00:00
d1876c4c77
`utils.apps` → `utils.service`
12 lines
296 B
Python
12 lines
296 B
Python
from utils.redisdb import RedisDB
|
|
from utils.service.manager import listener_service
|
|
from .cache import WikiCache
|
|
from .services import WikiService
|
|
|
|
|
|
@listener_service()
|
|
def create_wiki_service(redis: RedisDB):
|
|
_cache = WikiCache(redis)
|
|
_service = WikiService(_cache)
|
|
return _service
|