-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some caches need to be updated immediately when a player identity is …
…linked or unlinked #627
- Loading branch information
1 parent
61cec2b
commit b20b7dc
Showing
11 changed files
with
73 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,28 @@ | ||
using Stoolball.Statistics; | ||
using System.Collections.Generic; | ||
using Stoolball.Matches; | ||
using Stoolball.Statistics; | ||
using Stoolball.Teams; | ||
|
||
namespace Stoolball.Data.Abstractions | ||
{ | ||
public interface IPlayerCacheInvalidator | ||
{ | ||
void InvalidateCacheForPlayer(Player cacheable); | ||
/// <summary> | ||
/// Invalidate the cache for a single player, including their key statistics (but not all statistics). | ||
/// </summary> | ||
/// <param name="player">The player to clear the cache for.</param> | ||
void InvalidateCacheForPlayer(Player player); | ||
|
||
/// <summary> | ||
/// Invalidate the combined cache of player identities for all of the teams playing in a match. | ||
/// </summary> | ||
/// <param name="teamsInMatch">The teams playing in the match.</param> | ||
void InvalidateCacheForTeams(IEnumerable<TeamInMatch> teamsInMatch); | ||
|
||
/// <summary> | ||
/// Invalidate the individual cache of player identities for each supplied team. | ||
/// </summary> | ||
/// <param name="teams">The teams for which individual caches should be cleared.</param> | ||
void InvalidateCacheForTeams(params Team[] teams); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-7 Bytes
(100%)
Stoolball.Data.SqlServer.IntegrationTests/StoolballIntegrationTests.dacpac
Binary file not shown.
Binary file modified
BIN
-7 Bytes
(100%)
...SqlServer.IntegrationTests/StoolballStatisticsMaxResultsDataSourceIntegrationTests.dacpac
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters