当前位置:网站首页>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 @组名
边栏推荐
- xargs命令的基本用法
- pytorch查看张量占用内存大小
- Mathematical modeling 2004b question (transmission problem)
- LeetCode:236. The nearest common ancestor of binary tree
- Redis之cluster集群
- AcWing 2456. 记事本
- Selenium+Pytest自动化测试框架实战
- CUDA实现focal_loss
- Booking of tourism products in Gansu quadrupled: "green horse" became popular, and one room of B & B around Gansu museum was hard to find
- opencv+dlib实现给蒙娜丽莎“配”眼镜
猜你喜欢
How to intercept the string correctly (for example, intercepting the stock in operation by applying the error information)
甘肃旅游产品预订增四倍:“绿马”走红,甘肃博物馆周边民宿一房难求
A convolution substitution of attention mechanism
多元聚类分析
Simclr: comparative learning in NLP
requests的深入刨析及封装调用
自定义卷积注意力算子的CUDA实现
【shell脚本】——归档文件脚本
【图的三大存储方式】只会用邻接矩阵就out了
postman之参数化详解
随机推荐
Super efficient! The secret of swagger Yapi
[OC]-<UI入门>--常用控件-UIButton
Show slave status \ read in G_ Master_ Log_ POS and relay_ Log_ The (size) relationship of POS
Leetcode: Jianzhi offer 04 Search in two-dimensional array
Advanced Computer Network Review(4)——Congestion Control of MPTCP
一篇文章带你了解-selenium工作原理详解
Multivariate cluster analysis
BN折叠及其量化
Advance Computer Network Review(1)——FatTree
Leetcode problem solving 2.1.1
力扣每日一题(二)
Chapter 1 :Application of Artificial intelligence in Drug Design:Opportunity and Challenges
Compétences en mémoire des graphiques UML
Reids之缓存预热、雪崩、穿透
The ECU of 21 Audi q5l 45tfsi brushes is upgraded to master special adjustment, and the horsepower is safely and stably increased to 305 horsepower
After reading the programmer's story, I can't help covering my chest...
[MySQL] limit implements paging
LeetCode:26. Remove duplicates from an ordered array
Intel Distiller工具包-量化实现2
I-BERT