New: Cache goodreads responses

This commit is contained in:
ta264
2020-06-30 22:38:46 +01:00
parent 50e9225574
commit 3fa605177c
16 changed files with 216 additions and 5 deletions
@@ -14,6 +14,7 @@ namespace NzbDrone.Common.Extensions
private const string DB = "readarr.db";
private const string DB_RESTORE = "readarr.restore";
private const string LOG_DB = "logs.db";
private const string CACHE_DB = "cache.db";
private const string NLOG_CONFIG_FILE = "nlog.config";
private const string UPDATE_CLIENT_EXE_NAME = "Readarr.Update";
@@ -322,6 +323,11 @@ namespace NzbDrone.Common.Extensions
return Path.Combine(GetAppDataPath(appFolderInfo), LOG_DB);
}
public static string GetCacheDatabase(this IAppFolderInfo appFolderInfo)
{
return Path.Combine(GetAppDataPath(appFolderInfo), CACHE_DB);
}
public static string GetNlogConfigPath(this IAppFolderInfo appFolderInfo)
{
return Path.Combine(appFolderInfo.StartUpFolder, NLOG_CONFIG_FILE);