Skip to content

Commit 74c342d

Browse files
chore: update cache and razor render html
1 parent 9a51ee3 commit 74c342d

File tree

13 files changed

+581
-431
lines changed

13 files changed

+581
-431
lines changed

src/Api/packages.lock.json

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -874,14 +874,6 @@
874874
"Microsoft.EntityFrameworkCore.Relational": "8.0.17"
875875
}
876876
},
877-
"NetTopologySuite": {
878-
"type": "Transitive",
879-
"resolved": "2.5.0",
880-
"contentHash": "5/+2O2ADomEdUn09mlSigACdqvAf0m/pVPGtIPEPQWnyrVykYY0NlfXLIdkMgi41kvH9kNrPqYaFBTZtHYH7Xw==",
881-
"dependencies": {
882-
"System.Memory": "4.5.4"
883-
}
884-
},
885877
"Newtonsoft.Json": {
886878
"type": "Transitive",
887879
"resolved": "13.0.4-beta1",
@@ -908,11 +900,10 @@
908900
},
909901
"NRedisStack": {
910902
"type": "Transitive",
911-
"resolved": "1.0.0",
912-
"contentHash": "vCSwHNibWIgDic2sXAP23s7m7IMu3dlWdfv8LIufFfVGm+yyZ9MXCTFQaGw6zv4hE7k9RhJp64ObvLYx+2sQIQ==",
903+
"resolved": "1.1.0",
904+
"contentHash": "yXAaqhKT2hkapUBdpMEz7evNRwSGPP0KDd6E1GEIWPyLfnlTEHgEE8bsOD0I21ZHLvoMvKwbE4ibuOuVkOEE2Q==",
913905
"dependencies": {
914-
"NetTopologySuite": "2.5.0",
915-
"StackExchange.Redis": "2.8.24"
906+
"StackExchange.Redis": "2.8.58"
916907
}
917908
},
918909
"OpenTelemetry.Api": {
@@ -1026,10 +1017,10 @@
10261017
},
10271018
"StackExchange.Redis": {
10281019
"type": "Transitive",
1029-
"resolved": "2.8.24",
1030-
"contentHash": "GWllmsFAtLyhm4C47cOCipGxyEi1NQWTFUHXnJ8hiHOsK/bH3T5eLkWPVW+LRL6jDiB3g3izW3YEHgLuPoJSyA==",
1020+
"resolved": "2.8.58",
1021+
"contentHash": "0XGRE2UoF/n2/qhCpcyBBZovpGhHu4hRtkdsx4fZFu1H5Q/Z8Q+U/z/nWwnosWDRJnEasntNatd9Mf+Isc8plg==",
10311022
"dependencies": {
1032-
"Microsoft.Extensions.Logging.Abstractions": "6.0.0",
1023+
"Microsoft.Extensions.Logging.Abstractions": "8.0.0",
10331024
"Pipelines.Sockets.Unofficial": "2.2.8"
10341025
}
10351026
},
@@ -1181,8 +1172,6 @@
11811172
"Domain": "[1.0.0, )",
11821173
"FluentValidation.DependencyInjectionExtensions": "[12.0.0, )",
11831174
"Mediator.Abstractions": "[3.0.1, )",
1184-
"NRedisStack": "[1.0.0, )",
1185-
"RazorLight": "[2.3.1, )",
11861175
"Wangkanai.Detection": "[8.17.0, )",
11871176
"minhsangdotcom.TheTemplate.ElasticsearchFluentConfig": "[1.0.1-alpha, )"
11881177
}
@@ -1213,6 +1202,8 @@
12131202
"JWT": "[11.0.0, )",
12141203
"MailKit": "[4.12.1, )",
12151204
"Microsoft.AspNetCore.Authentication.JwtBearer": "[8.0.19, )",
1205+
"NRedisStack": "[1.1.0, )",
1206+
"RazorLight": "[2.3.1, )",
12161207
"TranMinhSang.DynamicQueryExtension.EntityFrameworkCore": "[0.1.1, )"
12171208
}
12181209
}

src/Application/Application.csproj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
</PackageReference>
1515
<PackageReference Include="minhsangdotcom.TheTemplate.ElasticsearchFluentConfig" Version="1.0.1-alpha" />
1616
<PackageReference Include="FluentValidation.DependencyInjectionExtensions" Version="12.0.0" />
17-
<PackageReference Include="NRedisStack" Version="1.0.0" />
18-
<PackageReference Include="RazorLight" Version="2.3.1" />
1917
<PackageReference Include="Wangkanai.Detection" Version="8.17.0" />
2018

2119
<Using Include="BCrypt.Net.BCrypt" Static="True" />

src/Application/Common/Interfaces/Services/Cache/CacheOptions.cs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@ public enum CacheExpirationType
99

1010
public class CacheOptions
1111
{
12-
/// <summary>
13-
/// Which expiration strategy to use.
14-
/// Defaults to Absolute.
15-
/// </summary>
1612
public CacheExpirationType ExpirationType { get; set; } = CacheExpirationType.Absolute;
17-
18-
/// <summary>
19-
/// Time span to use for either absolute or sliding expiration.
20-
/// Ignored if ExpirationType == None.
21-
/// If null, you can fall back to a global default in your implementation.
22-
/// </summary>
2313
public TimeSpan? Expiration { get; set; }
24-
25-
// (Optional) You could add more fields here:
26-
// public DateTimeOffset? AbsoluteExpiration { get; set; }
27-
// public Action<string, object, EvictionReason, TimeSpan> PostEvictionCallback { get; set; }
2814
}
Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
using StackExchange.Redis;
2-
31
namespace Application.Common.Interfaces.Services.Cache;
42

53
public interface IDistributedCacheService : ICacheService
64
{
7-
IDatabase Database { get; }
8-
95
Task RemoveAsync(string key);
106
}

0 commit comments

Comments
 (0)