Skip to content

Commit

Permalink
Adding central cache name for voucher information
Browse files Browse the repository at this point in the history
  • Loading branch information
Eduard Keilholz committed Sep 23, 2024
1 parent 6d0ddbb commit 3284072
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Wam.Core/Cache/CacheName.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
public static class CacheName
{
public static string UserDetails(Guid userId) => $"wam:user:id:{userId:N}";

public static string GameDetails(Guid gameId) => $"wam:game:id:{gameId:N}";
public static string GameDetails(string gameCode) => $"wam:game:code:{gameCode}";

public static string GameScoreBoard(Guid gameId) => $"wam:game:scoreboard:{gameId:N}";
public static string VoucherInfo(Guid voucherId) => $"wam:vouchers:{voucherId:N}";
}

0 comments on commit 3284072

Please sign in to comment.