Skip to content

Commit b88904a

Browse files
committed
【Add】添加Redis操作基础层,
【Update】升级Nuget包
1 parent 786487f commit b88904a

18 files changed

Lines changed: 591 additions & 19 deletions

File tree

.gitignore

Lines changed: 264 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,3 +62,267 @@
6262
/Sukt.Core/src/Sukt.Core.API/logs
6363
/Sukt.Core/src/Sukt.Core.Aop/obj
6464
/Sukt.Core/src/Sukt.Core.Aop/bin
65+
66+
## Ignore Visual Studio temporary files, build results, and
67+
## files generated by popular Visual Studio add-ons.
68+
69+
# User-specific files
70+
*.suo
71+
*.user
72+
*.userosscache
73+
*.sln.docstates
74+
75+
# User-specific files (MonoDevelop/Xamarin Studio)
76+
*.userprefs
77+
78+
# Build results
79+
[Dd]ebug/
80+
[Dd]ebugPublic/
81+
[Rr]elease/
82+
[Rr]eleases/
83+
x64/
84+
x86/
85+
bld/
86+
[Bb]in/
87+
[Oo]bj/
88+
[Ll]og/
89+
90+
# Visual Studio 2015 cache/options directory
91+
.vs/
92+
# Uncomment if you have tasks that create the project's static files in wwwroot
93+
#wwwroot/
94+
95+
# MSTest test Results
96+
[Tt]est[Rr]esult*/
97+
[Bb]uild[Ll]og.*
98+
99+
# NUNIT
100+
*.VisualState.xml
101+
TestResult.xml
102+
103+
# Build Results of an ATL Project
104+
[Dd]ebugPS/
105+
[Rr]eleasePS/
106+
dlldata.c
107+
108+
# DNX
109+
project.lock.json
110+
project.fragment.lock.json
111+
artifacts/
112+
113+
*_i.c
114+
*_p.c
115+
*_i.h
116+
*.ilk
117+
*.meta
118+
*.obj
119+
*.pch
120+
*.pdb
121+
*.pgc
122+
*.pgd
123+
*.rsp
124+
*.sbr
125+
*.tlb
126+
*.tli
127+
*.tlh
128+
*.tmp
129+
*.tmp_proj
130+
*.log
131+
*.vspscc
132+
*.vssscc
133+
.builds
134+
*.pidb
135+
*.svclog
136+
*.scc
137+
138+
# Chutzpah Test files
139+
_Chutzpah*
140+
141+
# Visual C++ cache files
142+
ipch/
143+
*.aps
144+
*.ncb
145+
*.opendb
146+
*.opensdf
147+
*.sdf
148+
*.cachefile
149+
*.VC.db
150+
*.VC.VC.opendb
151+
152+
# Visual Studio profiler
153+
*.psess
154+
*.vsp
155+
*.vspx
156+
*.sap
157+
158+
# TFS 2012 Local Workspace
159+
$tf/
160+
161+
# Guidance Automation Toolkit
162+
*.gpState
163+
164+
# ReSharper is a .NET coding add-in
165+
_ReSharper*/
166+
*.[Rr]e[Ss]harper
167+
*.DotSettings.user
168+
169+
# JustCode is a .NET coding add-in
170+
.JustCode
171+
172+
# TeamCity is a build add-in
173+
_TeamCity*
174+
175+
# DotCover is a Code Coverage Tool
176+
*.dotCover
177+
178+
# NCrunch
179+
_NCrunch_*
180+
.*crunch*.local.xml
181+
nCrunchTemp_*
182+
183+
# MightyMoose
184+
*.mm.*
185+
AutoTest.Net/
186+
187+
# Web workbench (sass)
188+
.sass-cache/
189+
190+
# Installshield output folder
191+
[Ee]xpress/
192+
193+
# DocProject is a documentation generator add-in
194+
DocProject/buildhelp/
195+
DocProject/Help/*.HxT
196+
DocProject/Help/*.HxC
197+
DocProject/Help/*.hhc
198+
DocProject/Help/*.hhk
199+
DocProject/Help/*.hhp
200+
DocProject/Help/Html2
201+
DocProject/Help/html
202+
203+
# Click-Once directory
204+
publish/
205+
206+
# Publish Web Output
207+
*.[Pp]ublish.xml
208+
*.azurePubxml
209+
# TODO: Comment the next line if you want to checkin your web deploy settings
210+
# but database connection strings (with potential passwords) will be unencrypted
211+
#*.pubxml
212+
*.publishproj
213+
214+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
215+
# checkin your Azure Web App publish settings, but sensitive information contained
216+
# in these scripts will be unencrypted
217+
PublishScripts/
218+
219+
# NuGet Packages
220+
*.nupkg
221+
# The packages folder can be ignored because of Package Restore
222+
**/packages/*
223+
# except build/, which is used as an MSBuild target.
224+
!**/packages/build/
225+
# Uncomment if necessary however generally it will be regenerated when needed
226+
#!**/packages/repositories.config
227+
# NuGet v3's project.json files produces more ignoreable files
228+
*.nuget.props
229+
*.nuget.targets
230+
231+
# Microsoft Azure Build Output
232+
csx/
233+
*.build.csdef
234+
235+
# Microsoft Azure Emulator
236+
ecf/
237+
rcf/
238+
239+
# Windows Store app package directories and files
240+
AppPackages/
241+
BundleArtifacts/
242+
Package.StoreAssociation.xml
243+
_pkginfo.txt
244+
245+
# Visual Studio cache files
246+
# files ending in .cache can be ignored
247+
*.[Cc]ache
248+
# but keep track of directories ending in .cache
249+
!*.[Cc]ache/
250+
251+
# Others
252+
ClientBin/
253+
~$*
254+
*~
255+
*.dbmdl
256+
*.dbproj.schemaview
257+
*.jfm
258+
*.pfx
259+
*.publishsettings
260+
node_modules/
261+
orleans.codegen.cs
262+
263+
# Since there are multiple workflows, uncomment next line to ignore bower_components
264+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
265+
#bower_components/
266+
267+
# RIA/Silverlight projects
268+
Generated_Code/
269+
270+
# Backup & report files from converting an old project file
271+
# to a newer Visual Studio version. Backup files are not needed,
272+
# because we have git ;-)
273+
_UpgradeReport_Files/
274+
Backup*/
275+
UpgradeLog*.XML
276+
UpgradeLog*.htm
277+
278+
# SQL Server files
279+
*.mdf
280+
*.ldf
281+
282+
# Business Intelligence projects
283+
*.rdl.data
284+
*.bim.layout
285+
*.bim_*.settings
286+
287+
# Microsoft Fakes
288+
FakesAssemblies/
289+
290+
# GhostDoc plugin setting file
291+
*.GhostDoc.xml
292+
293+
# Node.js Tools for Visual Studio
294+
.ntvs_analysis.dat
295+
296+
# Visual Studio 6 build log
297+
*.plg
298+
299+
# Visual Studio 6 workspace options file
300+
*.opt
301+
302+
# Visual Studio LightSwitch build output
303+
**/*.HTMLClient/GeneratedArtifacts
304+
**/*.DesktopClient/GeneratedArtifacts
305+
**/*.DesktopClient/ModelManifest.xml
306+
**/*.Server/GeneratedArtifacts
307+
**/*.Server/ModelManifest.xml
308+
_Pvt_Extensions
309+
310+
# Paket dependency manager
311+
.paket/paket.exe
312+
paket-files/
313+
314+
# FAKE - F# Make
315+
.fake/
316+
317+
# JetBrains Rider
318+
.idea/
319+
*.sln.iml
320+
321+
# CodeRush
322+
.cr/
323+
324+
# Python Tools for Visual Studio (PTVS)
325+
__pycache__/
326+
*.pyc
327+
328+

Sukt.Core/Sukt.Core.Test/Sukt.Core.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</ItemGroup>
1212

1313
<ItemGroup>
14-
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.5" />
14+
<PackageReference Include="Microsoft.AspNetCore.Mvc.Testing" Version="3.1.6" />
1515
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.6.1" />
1616
<PackageReference Include="xunit" Version="2.4.1" />
1717
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.2">

Sukt.Core/Sukt.Core.sln

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sukt.Core.Aop", "src\Sukt.C
4949
EndProject
5050
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GateWay", "GateWay", "{0A6223BD-FC59-45C1-A24E-3EE3C3F161B5}"
5151
EndProject
52-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sukt.Core.SeriLog", "src\Sukt.Core.SeriLog\Sukt.Core.SeriLog.csproj", "{0E6C3ABD-E9A9-44E4-83CD-F3B48BEA61A8}"
52+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Sukt.Core.SeriLog", "src\Sukt.Core.SeriLog\Sukt.Core.SeriLog.csproj", "{0E6C3ABD-E9A9-44E4-83CD-F3B48BEA61A8}"
53+
EndProject
54+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sukt.Core.Redis", "src\Sukt.Core.Redis\Sukt.Core.Redis.csproj", "{12DEA52E-43A4-4BD1-84EC-15FEC53631CE}"
55+
EndProject
56+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Sukt.Core.Caching", "src\Sukt.Core.Caching\Sukt.Core.Caching.csproj", "{AAD64D4D-D593-4C98-9EA1-9FA3AB435A62}"
5357
EndProject
5458
Global
5559
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -113,6 +117,14 @@ Global
113117
{0E6C3ABD-E9A9-44E4-83CD-F3B48BEA61A8}.Debug|Any CPU.Build.0 = Debug|Any CPU
114118
{0E6C3ABD-E9A9-44E4-83CD-F3B48BEA61A8}.Release|Any CPU.ActiveCfg = Release|Any CPU
115119
{0E6C3ABD-E9A9-44E4-83CD-F3B48BEA61A8}.Release|Any CPU.Build.0 = Release|Any CPU
120+
{12DEA52E-43A4-4BD1-84EC-15FEC53631CE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
121+
{12DEA52E-43A4-4BD1-84EC-15FEC53631CE}.Debug|Any CPU.Build.0 = Debug|Any CPU
122+
{12DEA52E-43A4-4BD1-84EC-15FEC53631CE}.Release|Any CPU.ActiveCfg = Release|Any CPU
123+
{12DEA52E-43A4-4BD1-84EC-15FEC53631CE}.Release|Any CPU.Build.0 = Release|Any CPU
124+
{AAD64D4D-D593-4C98-9EA1-9FA3AB435A62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
125+
{AAD64D4D-D593-4C98-9EA1-9FA3AB435A62}.Debug|Any CPU.Build.0 = Debug|Any CPU
126+
{AAD64D4D-D593-4C98-9EA1-9FA3AB435A62}.Release|Any CPU.ActiveCfg = Release|Any CPU
127+
{AAD64D4D-D593-4C98-9EA1-9FA3AB435A62}.Release|Any CPU.Build.0 = Release|Any CPU
116128
EndGlobalSection
117129
GlobalSection(SolutionProperties) = preSolution
118130
HideSolutionNode = FALSE
@@ -134,6 +146,8 @@ Global
134146
{5909CC5C-0DA3-4396-B434-F448E50A2463} = {B061BE61-AEF2-4F5E-B900-280FBB10BFC3}
135147
{109C5A6D-C1AA-4AF8-872E-4039F7DB0AFA} = {5909CC5C-0DA3-4396-B434-F448E50A2463}
136148
{0E6C3ABD-E9A9-44E4-83CD-F3B48BEA61A8} = {B061BE61-AEF2-4F5E-B900-280FBB10BFC3}
149+
{12DEA52E-43A4-4BD1-84EC-15FEC53631CE} = {B061BE61-AEF2-4F5E-B900-280FBB10BFC3}
150+
{AAD64D4D-D593-4C98-9EA1-9FA3AB435A62} = {B061BE61-AEF2-4F5E-B900-280FBB10BFC3}
137151
EndGlobalSection
138152
GlobalSection(ExtensibilityGlobals) = postSolution
139153
SolutionGuid = {05B139D9-1492-4454-AF04-522949DE00D3}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using Sukt.Core.Redis;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Threading.Tasks;
6+
7+
namespace Sukt.Core.API.Startups
8+
{
9+
public class CSRedisModule : CSRedisModuleBase
10+
{
11+
}
12+
}

Sukt.Core/src/Sukt.Core.API/Sukt.Core.API.csproj

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414

1515
<ItemGroup>
1616
<PackageReference Include="AspectCore.Extensions.Hosting" Version="2.1.0" />
17-
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.5" />
18-
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.5" />
19-
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.5">
17+
<PackageReference Include="Microsoft.AspNetCore.Mvc.NewtonsoftJson" Version="3.1.6" />
18+
<PackageReference Include="Microsoft.DotNet.PlatformAbstractions" Version="3.1.6" />
19+
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="3.1.6">
2020
<PrivateAssets>all</PrivateAssets>
2121
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
2222
</PackageReference>
23-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
23+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.6" />
2424
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.10.8" />
2525
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="3.1.3" />
2626
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="3.1.1" />
@@ -39,6 +39,7 @@
3939
<ProjectReference Include="..\Sukt.Core.DomainRealization\Sukt.Core.DomainRealization.csproj" />
4040
<ProjectReference Include="..\Sukt.Core.Dtos\Sukt.Core.Dtos.csproj" />
4141
<ProjectReference Include="..\Sukt.Core.EntityFrameworkCore\Sukt.Core.EntityFrameworkCore.csproj" />
42+
<ProjectReference Include="..\Sukt.Core.Redis\Sukt.Core.Redis.csproj" />
4243
<ProjectReference Include="..\Sukt.Core.SeriLog\Sukt.Core.SeriLog.csproj" />
4344
<ProjectReference Include="..\Sukt.Core.Swagger\Sukt.Core.Swagger.csproj" />
4445
</ItemGroup>

Sukt.Core/src/Sukt.Core.API/appsettings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"Cors": {
3838
"PolicyName": "SuktCore.API",
3939
"Url": "http://localhost:8080,http://localhost:8081,http://localhost:8082,http://localhost:8083,http://localhost:8084" ////支持多个域名端口,注意端口号后不要带/斜杆:比如localhost:8000/,是错的
40+
},
41+
"Redis": {
42+
"ConnectionString": "SuktCoreRedis.txt"
4043
}
4144
}
4245
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": "1.0",
3+
"defaultProvider": "cdnjs",
4+
"libraries": []
5+
}

Sukt.Core/src/Sukt.Core.AspNetCore/Sukt.Core.AspNetCore.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<ItemGroup>
88
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.5" />
9-
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.5" />
9+
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="3.1.6" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

Sukt.Core/src/Sukt.Core.AutoMapper/Sukt.Core.AutoMapper.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="AutoMapper" Version="9.0.0" />
9-
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="7.0.0" />
8+
<PackageReference Include="AutoMapper" Version="10.0.0" />
9+
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.0.1" />
1010
</ItemGroup>
1111

1212
<ItemGroup>

0 commit comments

Comments
 (0)