[鐵人賽 Day20] ASP.NET Core 2 系列 - 快取機制及 Redis Session
![[鐵人賽 Day20] ASP.NET Core 2 系列 - 快取機制及 Redis Session](/images/ironman/i20-1.png)
為了程式效率,通常會利用記憶體存取速度遠高於磁碟讀取的特性,把常用但不常變動資料放在記憶體中,提升取用資料的速度。ASP.NET Core 有提供好用的快取機制,不用自己實作控制資料的快取物件。
本篇將介紹 ASP.NET Core 的本機快取及分散式快取,並使用分散式快取實作 Redis Session,避免 Web Application 重啟後,用戶要重新登入。
iT 邦幫忙 2018 鐵人賽 - Modern Web 組參賽文章:
[Day20] ASP.NET Core 2 系列 - 快取機制及 Redis Session
![[鐵人賽 Day18] ASP.NET Core 2 系列 - Logging](/images/ironman/i18-1.png)
![[鐵人賽 Day16] ASP.NET Core 2 系列 - 多重環境組態管理 (Multiple Environments)](/images/ironman/i16-3.png)
![[鐵人賽 Day14] ASP.NET Core 2 系列 - Filters](/images/a/198.png)
![[鐵人賽 Day12] ASP.NET Core 2 系列 - REST-Like API](/images/ironman/i12-1.png)
![[鐵人賽 Day19] ASP.NET Core 2 系列 - NLog & Log4net](/images/ironman/i19-1.png)
![[鐵人賽 Day17] ASP.NET Core 2 系列 - 例外處理 (Exception Handler)](/images/a/206.png)
![[鐵人賽 Day15] ASP.NET Core 2 系列 - 組態設定 (Configuration)](/images/ironman/i15-2.png)
![[鐵人賽 Day13] ASP.NET Core 2 系列 - Web API 文件產生器 (Swagger)](/images/ironman/i13-1.png)
![[鐵人賽 Day11] ASP.NET Core 2 系列 - Cookies & Session](/images/ironman/i11-1.png)