- 博客(4)
- 资源 (7)
- 收藏
- 关注
原创 .net core 3.1 + redis 读写List列表
需提前准备redis包:ServiceStack.Interfaces ServiceStack.Redis.Core StackExchange.Redis Newtonsoft.Json首先需创建一个Student类:[Serializable] public class Student { public int id { get; set; } public string name { get; set;
2020-12-01 10:51:36 987
原创 .net core+redis 设置过期时间
需提前准备redis包:ServiceStack.Interfaces ServiceStack.Redis.Core StackExchange.Redis直接上代码: RedisClient client = new RedisClient("127.0.0.1", 6379); client.FlushAll(); //1.key //2.value //3.过期时间
2020-11-27 11:18:03 2190
原创 .net core + redis 实现读取数组
需提前准备redis包:ServiceStack.Interfaces ServiceStack.Redis.Core StackExchange.Redis第二步:新建一个Student类:[Serializable] public class Student { public string id { get; set; } public string name { get; set; }
2020-11-27 10:50:31 502
原创 .net core 3.1 日期格式化Json
1.引用Microsoft.AspNetCore.Mvc.NewtonsoftJson2.Startup类中修改ConfigureServicespublic void ConfigureServices(IServiceCollection services) { services.AddDbContext<StudyContext>(opt => opt.UseInMemoryDatabase("SqlS...
2020-11-26 17:26:22 1463
.net core + redis 实用类库
2020-11-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人