""" Redis cache key patterns and helper functions. Author: Claude Date: 2025-11-01 """ def get_player_positions_cache_key(player_id: int) -> str: """ Get Redis cache key for player's position ratings. Args: player_id: Player ID Returns: Cache key string Example: >>> get_player_positions_cache_key(10932) 'player:10932:positions' """ return f"player:{player_id}:positions" def get_game_state_cache_key(game_id: int) -> str: """ Get Redis cache key for game state. Args: game_id: Game ID Returns: Cache key string Example: >>> get_game_state_cache_key(123) 'game:123:state' """ return f"game:{game_id}:state"