Axin911

导航

2021年12月16日 #

Redis

摘要: 1.启动服务 redis-server 2.配置Windows配置 redis-server redis.windows-conf 3.启动客户端 redis-cli 4.赋值set key value 5.取值get key 6.redis-benchmark.exe -c 100 -n 100 阅读全文

posted @ 2021-12-16 17:28 Axin911 阅读(6) 评论(0) 推荐(0) 编辑

2021年12月14日 #

QuartZ

摘要: 1.nuget:引用QuartZ 2. public async static Task Init() { /// 创建单元载体 StdSchedulerFactory factory = new StdSchedulerFactory(); IScheduler scheduler = await 阅读全文

posted @ 2021-12-14 17:34 Axin911 阅读(28) 评论(0) 推荐(0) 编辑

Lambda表达式配合委托使用

摘要: 1. Function<int,int,int> func = new Function<int,int,int>((int a,int b) => {return a+b;}); // 解释:就是定义了一个有返回值的委托对象 参数为 2个 int 返回值为 int (int a,int b) => 阅读全文

posted @ 2021-12-14 17:31 Axin911 阅读(65) 评论(0) 推荐(0) 编辑