🐛 Purge cache of a cloud file after uploaded

This commit is contained in:
LittleSheep 2025-06-02 01:00:22 +08:00
parent 1307114b76
commit 28ba9871bf
2 changed files with 2 additions and 1 deletions

View File

@ -240,6 +240,7 @@ public class FileService(
await stream.DisposeAsync();
await store.DeleteFileAsync(file.Id, CancellationToken.None);
await nfs._PurgeCacheAsync(file.Id);
});
return file;

View File

@ -10,7 +10,7 @@ using tusdotnet.Models.Configuration;
namespace DysonNetwork.Sphere.Storage;
public class TusService
public abstract class TusService
{
public static DefaultTusConfiguration BuildConfiguration(ITusStore store) => new()
{