> For the complete documentation index, see [llms.txt](https://aiii-mike.gitbook.io/redis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aiii-mike.gitbook.io/redis/master.md).

# Intro

![](/files/-MfliN21DsEtpzEZDClG)

**Remote Dictionary Server（Redis）**&#x662F;一種**內存資料庫(in-memory)**&#x7684;架構，可以被當作一個簡易的資料庫(**key-value database**)，大部分情況下被當做**快取**使用，也可用於分散式鎖，計數器，排行榜，佇列等場景。等同於網頁中的 cookie、localStorage，Redis 使用 RAM 來存取資料所以相對來得快速，缺點是重開機後記憶體就會被釋放掉，但 Redis 有個功能 persistence 可以解決這個問題，此外 Redis 也能設定資料的生命週期(Expire)當你在儲存資料的時候，你可以新增一個效期(Expire time)的參數，時間一到之後，這個 key 就會自動被清除。
