mirror of
https://github.com/PaiGramTeam/PaiGram.git
synced 2024-11-16 12:51:35 +00:00
12 lines
334 B
Python
12 lines
334 B
Python
from utils.apps.manager import listener_service
|
|
from utils.redisdb import RedisDB
|
|
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
|