mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-17 21:22:56 +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
|