IT学习者博客

Linux--常用redis命令

文章目录

  • 一、连接redis
  • 二、切换库
  • 三、查看所有keys
  • 四、删除指定key
  • 五、退出redis

一、连接redis

连接本地redis客户端

redis-cli

在这里插入图片描述

二、切换库

切换redis库

select 3

在这里插入图片描述

三、查看所有keys

输入 keys * 查看redis 缓存key

keys *

在这里插入图片描述

四、删除指定key

删除指定key

del login_admin

在这里插入图片描述

五、退出redis

exit/quit
« Previous

SpringBoot进行测试出现提示TestContextAnnotationUtils错误

Next »

ubuntu 在使用sleep的时候,会有隐式告警,需要添加

© 2024 IT学习者博客. Generated with Hugo and Mainroad theme.