RunCrawlingTaskById

This commit is contained in:
Haiping Chen 2024-08-23 14:02:03 -05:00
parent c928262340
commit 3eddcb9973
2 changed files with 11 additions and 1 deletions

1
.gitignore vendored
View file

@ -294,3 +294,4 @@ wwwroot
appsettings.Production.json
*.csproj.user
env/
FodyWeavers.*

View file

@ -16,6 +16,9 @@ public class CacheService : ICacheService
public async Task<T?> GetAsync<T>(string key)
{
#if DEBUG
return default;
#endif
if (string.IsNullOrEmpty(_settings.Redis))
{
return default;
@ -39,6 +42,9 @@ public class CacheService : ICacheService
public async Task<object> GetAsync(string key, Type type)
{
#if DEBUG
return default;
#endif
if (string.IsNullOrEmpty(_settings.Redis))
{
return default;
@ -63,6 +69,9 @@ public class CacheService : ICacheService
public async Task SetAsync<T>(string key, T value, TimeSpan? expiry)
{
#if DEBUG
return;
#endif
if (string.IsNullOrEmpty(_settings.Redis))
{
return;