Skip to content

Commit 3eddcb9

Browse files
committed
RunCrawlingTaskById
1 parent c928262 commit 3eddcb9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,5 @@ logs
293293
wwwroot
294294
appsettings.Production.json
295295
*.csproj.user
296-
env/
296+
env/
297+
FodyWeavers.*

Diff for: src/Infrastructure/BotSharp.Core/Infrastructures/CacheService.cs

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ public CacheService(BotSharpDatabaseSettings settings)
1616

1717
public async Task<T?> GetAsync<T>(string key)
1818
{
19+
#if DEBUG
20+
return default;
21+
#endif
1922
if (string.IsNullOrEmpty(_settings.Redis))
2023
{
2124
return default;
@@ -39,6 +42,9 @@ public CacheService(BotSharpDatabaseSettings settings)
3942

4043
public async Task<object> GetAsync(string key, Type type)
4144
{
45+
#if DEBUG
46+
return default;
47+
#endif
4248
if (string.IsNullOrEmpty(_settings.Redis))
4349
{
4450
return default;
@@ -63,6 +69,9 @@ public async Task<object> GetAsync(string key, Type type)
6369

6470
public async Task SetAsync<T>(string key, T value, TimeSpan? expiry)
6571
{
72+
#if DEBUG
73+
return;
74+
#endif
6675
if (string.IsNullOrEmpty(_settings.Redis))
6776
{
6877
return;

0 commit comments

Comments
 (0)