Redis簡要

Adam00
2 min readMay 18, 2019

--

1.1 Redis是什麼?

Redis是一個數據庫。以特定的鍵來存取資料。

1.2 官方網站

1.3 最新版本

5.0.4 (March 18, 2019)

2. 特點


  • 相對起傳統數據庫,存取速度快百倍
  • 數據自動過期
    能設定過期時間,減低舊數據被讀取的機會
  • 訂閱(Pub-sub)
    建立消息系統
  • 事務(Transaction)
    保持資料一致性(Atomicity)

3. 資源支援

3.1 基本類型

  • 字串(String)
  • 串列(List — Linked List)
  • 散列(Hash)
  • 集合(Set)
  • 有序集合(Sorted Set)

3.2 進階類型

  • HyperLogLog
    Memory friendly unique value counter
    98% accuracy when sotring ~10⁹ records
  • Stream (5.0)
  • Bloom Filter
    Memory friendly unique set checker
    the value not in the set is not in the set (100%)
    the value in the set may NOT be in the set (~1%)
  • Bitmap
  • Geohash

5. 其他選擇

--

--

Adam00

Let's go invent tomorrow instead of worrying about what happened yesterday.