Redis的简单学习

一、官网

  http://redis.io/download      http://www.redis.cn
  Win的版本是微软自己维护的

二、基本的命令 闲着无事抄文档

1.设置一个用户
#config get requirepass
#config set requirepass 密码

#auth 密码
2.简单的key-value http://www.redis.cn/commands.html#string
#key * 列出所有的key值

#get set 就可以了

#decr、incr 增减整数 decrby、incrby

#append
3.hash的操作 http://www.redis.cn/commands.html#hash
#hset (key,field,value) key map<key,valu>
。。。。。。
4.list操作 http://www.redis.cn/commands.html#list
当做一个数组来考虑?队列 一个key一个队列
5.sets操作 http://www.redis.cn/commands.html#set

集合的操作
6.排序 http://www.redis.cn/commands.html#sorted_set

。。。。。。失效时间、事务、本地保存

三、java的驱动

   https://github.com/xetorthio/jedis/releases

   maven

基本操作应该和命令差不读

池子

四、额外看客

       1.位操作 http://blog.nosqlfan.com/html/3501.html

转载于:https://my.oschina.net/findurl/blog/267450

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值