PamGram/core/game/__init__.py

12 lines
337 B
Python
Raw Normal View History

from utils.redisdb import RedisDB
from utils.service.manager import listener_service
2022-08-05 11:14:29 +00:00
from .cache import GameStrategyCache
from .services import GameStrategyService
@listener_service()
def create_game_strategy_service(redis: RedisDB):
_cache = GameStrategyCache(redis)
_service = GameStrategyService(_cache)
return _service