> 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

Introduction about Redis server

![](https://224613336-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Mb64kSCne8LKJiDOD49%2F-MflhuZcrOpkXX8YRqmY%2F-MfliN21DsEtpzEZDClG%2F1280px-Redis_Logo.png?alt=media\&token=1f259c7d-7849-43e7-bfcd-1551a4fc67b1)

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