mirror of
https://github.com/PaiGramTeam/MibooGram.git
synced 2024-11-17 13:22:54 +00:00
602ce67e41
`apps` → `core`
12 lines
337 B
Python
12 lines
337 B
Python
from utils.redisdb import RedisDB
|
|
from utils.service.manager import listener_service
|
|
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
|