MibooGram/app/game/__init__.py

12 lines
348 B
Python
Raw Normal View History

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