# 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:

   

    


STRING:

     

     

   

  


LIST

返回存储在 key 的列表里指定范围内的元素。 start 和 end 偏移量都是基于0的下标,即list的第一个元素下标是0(list的表头),第二个元素下标是1,以此类推。

偏移量也可以是负数,表示偏移量是从list尾部开始计数。 例如, -1 表示列表的最后一个元素,-2 是倒数第二个,以此类推。

    

   


SET

      


HASH:

    


ZSET:有序集合

最新文章

  1. The Solution of UESTC 2016 Summer Training #1 Div.2 Problem A
  2. rqnoj-342-最不听话的机器人-dp
  3. Linux修改 DNS
  4. ImportError: No module named pysqlite2 --安装pysqlite
  5. ServletContext获取项目真实路径
  6. js全局函数
  7. eclipse安装PyDev插件出错No software site found at jar:file:[离线包路径]!/. Do you wish to edit the location?
  8. [图形学] 结束 [Unity Shader] 开始
  9. Python实现简易Web服务器
  10. web.xml的<url-parttern>的匹配规则
  11. python3学习笔记之十七
  12. oracle USING 用法
  13. [TJOI2017]DNA
  14. session与cookie的区别以及HTML5中WebStorage理解
  15. python摸爬滚打之day01----初识Python
  16. 深入理解Git - 一切皆commit
  17. [Java]struts2-spring整合时配置监听器
  18. 《Python》反射、内置方法(__str__,__repr__)
  19. sql判断某个字段是否为空
  20. HEVC有损优化二

热门文章

  1. MSG结构体
  2. Java调用外部类定义的方法(Static与无Static两种)
  3. YARN(MapReduce 2)运行MapReduce的过程-源码分析
  4. Vue HTML5 History 模式
  5. git stash和git stash pop(转载)
  6. 洛谷 - P2444 - 病毒 - AC自动机
  7. 51nod 1138 【数学-等差数列】
  8. mui.init()方法中可以有子页面和预加载两项内容,它们是否都在页面加载完成时创建其对应的webview对象?
  9. JSP | 基础 | 在同一表单中提交两个不同的action
  10. Contextual Action bar(2) 简介,启动,各函数介绍