Blog.Core/Blog.Core.Gateway
LemonNoCry 7629527ee9
🎨 缓存的完善优化
1.统一封装基于微软分布式缓存接口IDistributedCache使用
2.IDistributedCache只适合普通的缓存使用,如果要使用redis队列、订阅redis消息等,就要使用redis原生库
3.增加缓存管理接口[Systems/CacheManageController]
4.目前支持内存、redis缓存实现,理论可随意扩展甚至自定义实现
5.默认使用内存缓存,可在appsetting.json中配置Redis

切换到IDistributedCache好处如下
默认session使用IDistributedCache进行存储,如果你搭配使用IDistributedCache+外部缓存(如Redis),可实现应用程序重启session不丢失
更直观就是,调试的时候登录swagger后即使重启调试也无需在登陆
2023-06-01 17:54:54 +08:00
..
Controllers feat:ocelot swagger 2022-02-05 12:10:50 +08:00
Extensions fix: remove some warnings 2022-02-15 14:18:33 +08:00
Helper 🎨 缓存的完善优化 2023-06-01 17:54:54 +08:00
Properties Gateways Config 2021-01-25 19:58:34 +08:00
appsettings.gw.Development.json feat: 🐬 update publish linux sh 2023-02-26 18:32:49 +08:00
appsettings.gw.json feat: 🐬 update publish linux sh 2023-02-26 18:32:49 +08:00
Blog.Core.Gateway.csproj Fixed #334 BUG 2023-02-25 14:02:29 +08:00
Blog.Core.Gateway.xml fix: remove some warnings 2022-02-15 14:18:33 +08:00
index.html boboyunz -- fix 2022-02-15 13:25:30 +08:00
ocelot.Development.json fix: gateway add api result handler 2022-02-11 19:27:46 +08:00
ocelot.json feat:ocelot swagger 2022-02-05 12:10:50 +08:00
ocelot.Production.json adjust gateway 2021-01-26 10:48:56 +08:00
ocelot.Staging.json adjust gateway 2021-01-26 10:48:56 +08:00
Program.cs feat: 🐬 update publish linux sh 2023-02-26 18:32:49 +08:00
Startup.cs 修改Appsettings 驼峰命名规范为AppSettings,增加sqlsugar model 定义表字段注释示例在Blog.Core.Model.Models.SysUserInfo 2022-10-11 14:10:28 +08:00