PaiGram/app/game/__init__.py
2022-07-31 15:33:56 +08:00

12 lines
348 B
Python

from app.game.cache import GameStrategyCache
from app.game.service import GameStrategyService
from utils.app.manager import listener_service
from utils.redisdb import RedisDB
@listener_service()
def create_game_strategy_service(redis: RedisDB):
_cache = GameStrategyCache(redis)
_service = GameStrategyService(_cache)
return _service