当前位置:网站首页>Redis connection redis service command
Redis connection redis service command
2022-07-06 09:21:00 【~Pompeii】
Redis Connection redis The service command
1.auth
The command is used to detect whether the given password matches the password in the configuration file .
Return value : Returns when the password matches OK , Otherwise an error is returned .
AUTH PASSWORD

2.select
Select The command switches to the specified database , Database index number index Specify... With numeric values , With 0 As the starting index value .
By default 0 The database
SELECT index
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-cDWHXY3o-1656471720107)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629105804966.png)]](/img/1e/172f23c7047d6f741bb8f8f15c299d.png)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-uioGdORE-1656471720108)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629105817001.png)]](/img/f0/6e24eb55d7d93cea738e2a7d103015.png)
3.ping
Ping The command uses the client to Redis Server sends a PING , If the server works properly , Will return a PONG .
It is usually used to test whether the connection to the server is still valid , Or to measure the delay value .
If the connection is OK, return a PONG , Otherwise, a connection error is returned .
PING
4.quit
The command is used to close the connection with the current client and redis Service connection
Return value : Always returns OK .

5.echo
Echo Command to print a given string
Return value : Returns the string itself .
ECHO message

6.clear
Clear the information on the screen
clear
7.help
Get the command help document , Get all command information names in the group
help Command name
help @ Group name
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-z9e3Y8l2-1656471720108)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629110043591.png)]](/img/90/9a1c369455668fa8a455c30d40b433.png)
![[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-iWEAOwwb-1656471720109)(C:/Users/86158/AppData/Roaming/Typora/typora-user-images/image-20220629110052940.png)]](/img/c1/dadd6123702787f008bdfe586e1db1.png)
边栏推荐
- Seven layer network architecture
- Post training quantification of bminf
- Kratos ares microservice framework (III)
- Servlet learning diary 7 -- servlet forwarding and redirection
- 【每日一题】搬运工 (DFS / DP)
- IJCAI2022论文合集(持续更新中)
- Redis之Bitmap
- Global and Chinese markets for small seed seeders 2022-2028: Research Report on technology, participants, trends, market size and share
- What is MySQL? What is the learning path of MySQL
- go-redis之初始化連接
猜你喜欢

Pytest参数化你不知道的一些使用技巧 /你不知道的pytest

Advanced Computer Network Review(4)——Congestion Control of MPTCP

Servlet learning diary 8 - servlet life cycle and thread safety

Intel distiller Toolkit - Quantitative implementation 2

Redis' performance indicators and monitoring methods
![[oc]- < getting started with UI> -- learning common controls](/img/2c/d317166e90e1efb142b11d4ed9acb7.png)
[oc]- < getting started with UI> -- learning common controls

An article takes you to understand the working principle of selenium in detail

Advanced Computer Network Review(4)——Congestion Control of MPTCP

Redis之性能指标、监控方式

自定义卷积注意力算子的CUDA实现
随机推荐
甘肃旅游产品预订增四倍:“绿马”走红,甘肃博物馆周边民宿一房难求
Opencv+dlib realizes "matching" glasses for Mona Lisa
[oc foundation framework] - < copy object copy >
Global and Chinese market of capacitive displacement sensors 2022-2028: Research Report on technology, participants, trends, market size and share
一篇文章带你了解-selenium工作原理详解
requests的深入刨析及封装调用
Mysql database recovery (using mysqlbinlog command)
Leetcode: Jianzhi offer 04 Search in two-dimensional array
Global and Chinese market of AVR series microcontrollers 2022-2028: Research Report on technology, participants, trends, market size and share
Different data-driven code executes the same test scenario
AcWing 2456. 记事本
Leetcode: Sword finger offer 48 The longest substring without repeated characters
Selenium+Pytest自动化测试框架实战
一改测试步骤代码就全写 为什么不试试用 Yaml实现数据驱动?
【图的三大存储方式】只会用邻接矩阵就out了
Redis之连接redis服务命令
BN折叠及其量化
Redis之性能指标、监控方式
美团二面:为什么 Redis 会有哨兵?
Redis cluster