当前位置:网站首页>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)
边栏推荐
- Reids之删除策略
- Different data-driven code executes the same test scenario
- Mysql database recovery (using mysqlbinlog command)
- Advanced Computer Network Review(5)——COPE
- BMINF的後訓練量化實現
- QML type: overlay
- [oc]- < getting started with UI> -- learning common controls
- [OC]-<UI入门>--常用控件-UIButton
- Implement window blocking on QWidget
- Opencv+dlib realizes "matching" glasses for Mona Lisa
猜你喜欢

postman之参数化详解

QML type: locale, date

Pytest之收集用例规则与运行指定用例

Advanced Computer Network Review(5)——COPE

Kratos ares microservice framework (I)

I-BERT

Improved deep embedded clustering with local structure preservation (Idec)
![[OC foundation framework] - [set array]](/img/b5/5e49ab9d026c60816f90f0c47b2ad8.png)
[OC foundation framework] - [set array]

运维,放过监控-也放过自己吧
![[oc]- < getting started with UI> -- learning common controls](/img/2c/d317166e90e1efb142b11d4ed9acb7.png)
[oc]- < getting started with UI> -- learning common controls
随机推荐
运维,放过监控-也放过自己吧
Mathematical modeling 2004b question (transmission problem)
In depth analysis and encapsulation call of requests
Kratos ares microservice framework (III)
Using label template to solve the problem of malicious input by users
Opencv+dlib realizes "matching" glasses for Mona Lisa
Booking of tourism products in Gansu quadrupled: "green horse" became popular, and one room of B & B around Gansu museum was hard to find
Leetcode: Sword finger offer 48 The longest substring without repeated characters
Redis之Lua脚本
Kratos ares microservice framework (II)
Different data-driven code executes the same test scenario
Advanced Computer Network Review(3)——BBR
Mise en œuvre de la quantification post - formation du bminf
Redis之哨兵模式
QML type: locale, date
Redis之五大基础数据结构深入、应用场景
IDS cache preheating, avalanche, penetration
Servlet learning diary 8 - servlet life cycle and thread safety
Kratos战神微服务框架(二)
Global and Chinese market of bank smart cards 2022-2028: Research Report on technology, participants, trends, market size and share