mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-23 00:01:33 +00:00
12 lines
348 B
Python
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
|