mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2025-02-08 02:39:26 +08:00
Created AOP (markdown)
parent
3a7c7d055f
commit
cce1d6f51f
30
AOP.md
Normal file
30
AOP.md
Normal file
|
@ -0,0 +1,30 @@
|
|||
# 1、系列文章
|
||||
[https://www.cnblogs.com/laozhang-is-phi/category/1290896.html](https://www.cnblogs.com/laozhang-is-phi/category/1290896.html)
|
||||
|
||||
# 2、哪些AOP
|
||||
A、内存缓存AOP
|
||||
B、Redis缓存AOP
|
||||
C、日志AOP
|
||||
D、SqlSugar 生产Sql语句AOP(在仓储层 DbContext.cs 上下文中 _db.Aop.OnLogExecuting)
|
||||
|
||||
├──AOP
|
||||
│ ├─BlogCacheAOP.cs
|
||||
│ ├─BlogLogAOP.cs
|
||||
│ ├─BlogRedisCacheAOP.cs
|
||||
|
||||
# 3、配置AOP
|
||||
|
||||
在 appsettings.json 文件中配置:
|
||||
|
||||
"RedisCaching": {
|
||||
"Enabled": false,
|
||||
"ConnectionString": "127.0.0.1:6319"
|
||||
},
|
||||
"MemoryCachingAOP": {
|
||||
"Enabled": true
|
||||
},
|
||||
"LogAOP": {
|
||||
"Enabled": true
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user