Welcome to the Redis tutorial! This guide will help you get started with Redis, a high-performance key-value store that is often used as a database, cache, and message broker.

简介

Redis 是一个开源的使用 ANSI C 编写的,基于内存的键值对存储数据库。它通常用于缓存、消息传递和实时数据存储。Redis 支持多种类型的数据结构,包括字符串、列表、集合、散列表、有序集合和位图。

安装 Redis

To install Redis, you can visit the official Redis download page and follow the instructions for your operating system.

基本命令

Here are some basic Redis commands:

  • SET key value: Set the value of a key.
  • GET key: Get the value of a key.
  • DEL key: Delete a key.
  • KEYS pattern: Find keys matching the given pattern.

图片示例

Here is an example of a Redis data structure: a sorted set.

Sorted_Set

扩展阅读

For more information on Redis, you can check out the following resources: