RunCrawlingTaskById
This commit is contained in:
parent
c928262340
commit
3eddcb9973
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -293,4 +293,5 @@ logs
|
|||
wwwroot
|
||||
appsettings.Production.json
|
||||
*.csproj.user
|
||||
env/
|
||||
env/
|
||||
FodyWeavers.*
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue