当前位置:网站首页>Redis之连接redis服务命令
Redis之连接redis服务命令
2022-07-06 08:59:00 【~庞贝】
Redis之连接redis服务命令
1.auth
命令用于检测给定的密码和配置文件中的密码是否相符。
返回值:密码匹配时返回 OK ,否则返回一个错误。
AUTH PASSWORD
2.select
Select 命令用于切换到指定的数据库,数据库索引号 index 用数字值指定,以 0 作为起始索引值。
默认使用0号数据库
SELECT index
3.ping
Ping 命令使用客户端向 Redis 服务器发送一个 PING ,如果服务器运作正常的话,会返回一个 PONG 。
通常用于测试与服务器的连接是否仍然生效,或者用于测量延迟值。
如果连接正常就返回一个 PONG ,否则返回一个连接错误。
PING
4.quit
命令用于关闭与当前客户端与redis服务的连接
返回值:总是返回 OK 。
5.echo
Echo 命令用于打印给定的字符串
返回值:返回字符串本身。
ECHO message
6.clear
清除屏幕中的信息
clear
7.help
获取命令帮助文档,获取组中所有命令信息名称
help 命令名称
help @组名
边栏推荐
- Using C language to complete a simple calculator (function pointer array and callback function)
- Intel Distiller工具包-量化实现3
- What is MySQL? What is the learning path of MySQL
- QDialog
- Nacos 的安装与服务的注册
- Leetcode: Jianzhi offer 04 Search in two-dimensional array
- 注意力机制的一种卷积替代方式
- [text generation] recommended in the collection of papers - Stanford researchers introduce time control methods to make long text generation more smooth
- Improved deep embedded clustering with local structure preservation (Idec)
- Advanced Computer Network Review(5)——COPE
猜你喜欢
The carousel component of ant design calls prev and next methods in TS (typescript) environment
Selenium+Pytest自动化测试框架实战(下)
Problems encountered in connecting the database of the project and their solutions
Chapter 1 :Application of Artificial intelligence in Drug Design:Opportunity and Challenges
Kratos战神微服务框架(二)
Booking of tourism products in Gansu quadrupled: "green horse" became popular, and one room of B & B around Gansu museum was hard to find
Advanced Computer Network Review(5)——COPE
Advance Computer Network Review(1)——FatTree
ant-design的走马灯(Carousel)组件在TS(typescript)环境中调用prev以及next方法
[OC-Foundation框架]---【集合数组】
随机推荐
Pytest parameterization some tips you don't know / pytest you don't know
Nacos 的安装与服务的注册
多元聚类分析
Redis之Bitmap
The carousel component of ant design calls prev and next methods in TS (typescript) environment
Ijcai2022 collection of papers (continuously updated)
LeetCode:162. Looking for peak
[daily question] Porter (DFS / DP)
Notes 01
[shell script] - archive file script
Redis之主从复制
MySQL uninstallation and installation methods
After reading the programmer's story, I can't help covering my chest...
LeetCode:39. 组合总和
A convolution substitution of attention mechanism
LeetCode:498. Diagonal traversal
UML diagram memory skills
力扣每日一题(二)
什么是MySQL?MySql的学习之路是怎样的
LeetCode:394. String decoding