当前位置:网站首页>First understand redis' data structure - string
First understand redis' data structure - string
2022-06-24 19:52:00 【just_ peanut】
Redis Five data types commonly used in :
1、 character string (String)
2、 String list (List)
3、 Ordered string collection (Sorted list)
4、 Hash (Hash)
5、 String collection (Set)
One 、 Storage String Common commands
a. assignment set
b, Value get
c. Delete del
d. Increase or decrease in value incr/decr/incrby/decrby
e. The extension command append
[email protected] redis]# ./bin/redis-cli
127.0.0.1:6379> set girl Pretty
OK
127.0.0.1:6379> get girl
"Pretty"
127.0.0.1:6379> getset girl Lovely
"Pretty"
127.0.0.1:6379> get girl
"Lovely"
127.0.0.1:6379> set boy Hot
OK
127.0.0.1:6379> get boy
"Hot"
127.0.0.1:6379> del boy
(integer) 1
127.0.0.1:6379> get boy
(nil)
127.0.0.1:6379> incr num
(integer) 1
127.0.0.1:6379> get num
"1"
127.0.0.1:6379> incr num
(integer) 2
127.0.0.1:6379> get num
"2"
127.0.0.1:6379> decr num
(integer) 1
127.0.0.1:6379> get num
"1"
127.0.0.1:6379> decr num2
(integer) -1
127.0.0.1:6379> incrby num 5
(integer) 6
127.0.0.1:6379> decrby num 2
(integer) 4
127.0.0.1:6379> get num
"4"
127.0.0.1:6379>
127.0.0.1:6379>
127.0.0.1:6379> append num 4
(integer) 2
127.0.0.1:6379> get num
"44"
127.0.0.1:6379>
边栏推荐
- Some small requirements for SQL Engine for domestic database manufacturers
- Comparative analysis of arrayblockingqueue and linkedblockingqueue
- What about the Golden Angel of thunder one? Golden Angel mission details
- Oracle create tablespaces and tables
- What are the functions of IBPs open source form designer?
- Buddha bless you that there will never be a bug
- Full link service tracking implementation scheme
- 全链路业务追踪落地实践方案
- Northwestern Polytechnic University attacked by hackers? Two factor authentication changes the situation!
- Zadig + cave Iast: let safety dissolve in continuous delivery
猜你喜欢

Bytebase 加入阿里云 PolarDB 开源数据库社区

What is CNN (convolutional neural network)

Bytebase 加入阿裏雲 PolarDB 開源數據庫社區

60 个神级 VS Code 插件!!

php OSS文件讀取和寫入文件,workerman生成臨時文件並輸出瀏覽器下載

Unity移动端游戏性能优化简谱之 以引擎模块为划分的CPU耗时调优

Bytebase rejoint la communauté de base de données open source d'alicloud polardb

Information theory of popular science Shannon

Experience of MDM master data project implementation for manufacturing projects

微信小程序轮播图怎么自定义光标位置
随机推荐
R language 4.1.0 software installation package and installation tutorial
Making startup U disk -- Chinese cabbage U disk startup disk making tool V5.1
A detailed explanation of the implementation principle of go Distributed Link Tracking
Module V
The script implements the automated deployment of raid0
Comparative analysis of arrayblockingqueue and linkedblockingqueue
Using dynamic time warping (DTW) to solve the similarity measurement of time series and the similarity identification analysis of pollution concentration in upstream and downstream rivers
Example analysis of corrplot related heat map beautification in R language
技术实现 | Apache Doris 冷热数据存储(一)
Drawing DEM with GEE gracefully
Teach you how to view the number of connected people on WiFi in detail how to view the number of connected people on WiFi
Generate the last login user account report of the computer through SCCM SQL
Full link service tracking implementation scheme
Vs2017 setting function Chinese Notes
Capacitive inching touch switch module control (stm32f103c8t6)
微信小程序轮播图怎么自定义光标位置
Xiaobai, let me ask you guys, is MySQL binlog extracted by CDC in strict order
Apache+php+mysql environment construction is super detailed!!!
试驾 Citus 11.0 beta(官方博客)
【Go語言刷題篇】Go從0到入門4:切片的高級用法、初級複習與Map入門學習