Skip to content

Commit

Permalink
Add difficalcy: prefix to redis keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Syriiin committed Apr 24, 2024
1 parent 4ee885e commit d728303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Difficalcy/Services/CalculatorService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ private async Task<object> GetDifficultyAttributes(TScore score)
await EnsureBeatmap(score.BeatmapId);

var db = _cache.GetDatabase();
var redisKey = $"{CalculatorDiscriminator}:{score.BeatmapId}:{score.Mods ?? 0}";
var redisKey = $"difficalcy:{CalculatorDiscriminator}:{score.BeatmapId}:{score.Mods ?? 0}";
var difficultyAttributesJson = await db.GetAsync(redisKey);

object difficultyAttributes;
Expand Down

0 comments on commit d728303

Please sign in to comment.