首先Startup

public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
// For redis
// install-package Microsoft.Extensions.Caching.Redis
services.AddDistributedRedisCache(options =>
{
options.InstanceName = Configuration.GetConnectionString("RedisName");;
options.Configuration = Configuration.GetConnectionString("RedisConnection");
});
}

最新文章

  1. 【跟着子迟品 underscore】如何优雅地写一个『在数组中寻找指定元素』的方法
  2. (转)ant 使用指南
  3. ThinkPHP5 隐藏接口里面的index.php
  4. Codeforces Round #247 (Div. 2) B - Shower Line
  5. 第二章 Background & Borders 之 Multiple borders
  6. POJ 1573 Robot Motion
  7. 自定义实现MPVolumeView音量控件
  8. myeclipse、eclipse去掉无用的workSpace
  9. 【DOS】这个命令太牛逼了
  10. [Python Study Notes]批量将ppt转换为pdf v1.0
  11. Python中capitalize()与title()的区别
  12. git清空版本记录
  13. MVC过滤器使用方法
  14. sqlserver 分割字符串和调用
  15. parson json解析
  16. Scala进阶之路-为什么要学习Scala以及开发环境搭建
  17. auto function -> return type 当不能从{}内推断类型时
  18. 1A2B猜数字
  19. [SQL Server 2014] SQL Server 2014新特性探秘
  20. 项目中开机自启动的 node-webkit开机自启动

热门文章

  1. 网络 TCP三次握手,四次挥手详解
  2. Linux远程管理命令
  3. mysql数据库优化实战--日期及IP地址的正确存储方式
  4. Java对象深拷贝浅拷贝总结
  5. Build step 'Send files or execute commands over SSH' changed build result to UNSTABLE
  6. [unity]GPU Instance学习
  7. windows下pyinstaller打包踩坑记录
  8. spring的事务传播行为与隔离级别
  9. Vue通过WebSocket建立长连接
  10. src属性与浏览器渲染