ファイル
YMM4-ProxyForge/ProxyForge/Interfaces/IVideoCacheDatabase.cs
T
routersys 5ef1222518 ZeroDiskProxyからProxyForgeへのプロジェクト全体のリブランディング
プロジェクト名をZeroDiskProxyからProxyForgeへ全面的にリブランディングしました。
2026-03-25 19:58:39 +09:00

28 行
827 B
C#

namespace ProxyForge.Interfaces;
internal interface IVideoCacheDatabase : IDisposable
{
bool TryGet(string originalPath, float scale, out VideoCacheLookupResult result);
VideoCacheLookupResult[] GetAll();
void Add(string originalPath, float scale, uint proxyWidth, uint proxyHeight,
long fileSize, uint fileCrc32, Guid uuid);
bool Remove(Guid uuid);
int RemoveByPath(string originalPath);
int ClearAll();
void UpdateLastAccess(Guid uuid);
string GetCacheFilePath(Guid uuid);
string CacheDirectory { get; }
}
internal readonly record struct VideoCacheLookupResult(
Guid Uuid,
string OriginalPath,
string FileName,
float Scale,
uint ProxyWidth,
uint ProxyHeight,
long FileSize,
uint FileCrc32,
DateTime CreatedAt,
DateTime LastAccessedAt
);