Redis笔记(一):基础命令
String
Store plain string or number
- SET
- GET
- APPEND
List
List of strings
- LINDEX
- LLEN
- LINSERT
Hash
Collection of key-value pairs
- HGET
- HSET
- HDEL
Set
Set of strings (each string is unique)
- SADD
- SCARD
- SDIFF
Sorted Set
Set of strings in a particular order
- ZADD
- ZDIFF
- ZCOUNT
Bitmap
Kind of like a collection of booleans
- BITOP
- BITCOUNT
- BITPOS
Hyperloglog
Kind of like a collection of booleans
- PFADD
- PFCOUNT
- PFMERGE
JSON
Nested JSON structure
- JSON.SET
- JSON.GET
- JSON.DEL
Index
Internal data used for searching
- FT.SEARCH
- FT.CREATE
- FT.PROFILE
Documentation for commands: https://redis.io/commands