流浪のwolf

卷帝

导航

2023年10月21日

typeOrm 教程 创建链接数据库

摘要: 实体 User : import { Entity, PrimaryGeneratedColumn, Column } from "typeorm" @Entity() export class User { @PrimaryGeneratedColumn() id: number @Column( 阅读全文

posted @ 2023-10-21 22:07 流浪のwolf 阅读(96) 评论(0) 推荐(0) 编辑

C#WebApi 对数据进行缓存加快前请求数据的速度

摘要: using ClassLibrary1; using ClassLibrary2; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Loggin 阅读全文

posted @ 2023-10-21 21:05 流浪のwolf 阅读(141) 评论(0) 推荐(0) 编辑

C#内存缓存

摘要: 把缓存数据放到应用程序的内存,内存缓存中保存的是一些列键值对 ;生命周期就是关闭程序的时候,内存数据就会被销毁 ; IMemerCache 接口 Get 获取缓存 Set 设置缓存 阅读全文

posted @ 2023-10-21 10:59 流浪のwolf 阅读(20) 评论(0) 推荐(0) 编辑