Skip to content

Commit b569ac9

Browse files
committed
Use the generic TManifest on the manifest dictionary
1 parent 8777f22 commit b569ac9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/CacheTower/Providers/FileSystem/FileCacheLayerBase.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ namespace CacheTower.Providers.FileSystem
2727

2828
private HashAlgorithm FileNameHashAlgorithm { get; } = MD5.Create();
2929

30-
private ConcurrentDictionary<string?, IManifestEntry>? CacheManifest { get; set; }
30+
private ConcurrentDictionary<string?, TManifest>? CacheManifest { get; set; }
3131
private ConcurrentDictionary<string?, AsyncReaderWriterLock> FileLock { get; }
3232

3333
/// <summary>
@@ -94,7 +94,7 @@ private async Task TryLoadManifestAsync()
9494
{
9595
if (File.Exists(ManifestPath))
9696
{
97-
CacheManifest = await DeserializeFileAsync<ConcurrentDictionary<string?, IManifestEntry>>(ManifestPath);
97+
CacheManifest = await DeserializeFileAsync<ConcurrentDictionary<string?, TManifest>>(ManifestPath);
9898
}
9999
else
100100
{
@@ -103,7 +103,7 @@ private async Task TryLoadManifestAsync()
103103
Directory.CreateDirectory(DirectoryPath);
104104
}
105105

106-
CacheManifest = new ConcurrentDictionary<string?, IManifestEntry>();
106+
CacheManifest = new ConcurrentDictionary<string?, TManifest>();
107107
await SerializeFileAsync(ManifestPath, CacheManifest);
108108
}
109109
}

0 commit comments

Comments
 (0)