redis基础一_常用指令
2024-09-30 10:40:13
# Redis configuration file example.
#
# Note that in order to read the configuration file, Redis must be
# started with the file path as first argument:
#
./redis-server /path/to/redis.conf
docker启动redis:
docker run -d -p : -v /home/anmin/Desktop/docker/redis/data:/redis/data -v /home/anmin/Desktop/docker/redis/config:/redis/config redis redis-server /redis/config/redis.conf --appendonly yes
启动 redis 客户端:
切换数据库,redis默认有16个数据库:
DBSIZE:
KEYS:查找所有符合给定模式pattern(正则表达式)的 key 。
返回存储在 key 的列表里指定范围内的元素。 start 和 end 偏移量都是基于0的下标,即list的第一个元素下标是0(list的表头),第二个元素下标是1,以此类推。
偏移量也可以是负数,表示偏移量是从list尾部开始计数。 例如, -1 表示列表的最后一个元素,-2 是倒数第二个,以此类推。
最新文章
- The Solution of UESTC 2016 Summer Training #1 Div.2 Problem A
- rqnoj-342-最不听话的机器人-dp
- Linux修改 DNS
- ImportError: No module named pysqlite2 --安装pysqlite
- ServletContext获取项目真实路径
- js全局函数
- eclipse安装PyDev插件出错No software site found at jar:file:[离线包路径]!/. Do you wish to edit the location?
- [图形学] 结束 [Unity Shader] 开始
- Python实现简易Web服务器
- web.xml的<;url-parttern>;的匹配规则
- python3学习笔记之十七
- oracle USING 用法
- [TJOI2017]DNA
- session与cookie的区别以及HTML5中WebStorage理解
- python摸爬滚打之day01----初识Python
- 深入理解Git - 一切皆commit
- [Java]struts2-spring整合时配置监听器
- 《Python》反射、内置方法(__str__,__repr__)
- sql判断某个字段是否为空
- HEVC有损优化二
热门文章
- MSG结构体
- Java调用外部类定义的方法(Static与无Static两种)
- YARN(MapReduce 2)运行MapReduce的过程-源码分析
- Vue HTML5 History 模式
- git stash和git stash pop(转载)
- 洛谷 - P2444 - 病毒 - AC自动机
- 51nod 1138 【数学-等差数列】
- mui.init()方法中可以有子页面和预加载两项内容,它们是否都在页面加载完成时创建其对应的webview对象?
- JSP | 基础 | 在同一表单中提交两个不同的action
- Contextual Action bar(2) 简介,启动,各函数介绍