Add option to reset stalled strikes on download progress (#50)

This commit is contained in:
Marius Nechifor
2025-01-25 03:27:40 +02:00
committed by GitHub
parent a3ca735b12
commit 133c34de53
14 changed files with 92 additions and 18 deletions
+14
View File
@@ -0,0 +1,14 @@
using Domain.Enums;
namespace Infrastructure.Helpers;
public static class CacheKeys
{
public static string Strike(StrikeType strikeType, string hash) => $"{strikeType.ToString()}_{hash}";
public static string BlocklistType(InstanceType instanceType) => $"{instanceType.ToString()}_type";
public static string BlocklistPatterns(InstanceType instanceType) => $"{instanceType.ToString()}_patterns";
public static string BlocklistRegexes(InstanceType instanceType) => $"{instanceType.ToString()}_regexes";
public static string Item(string hash) => $"item_{hash}";
}