上一页 1 2 3 4 5 6 7 8 ··· 10 下一页
摘要: set 操作添加 sadd myset 1 2 3 4 5 6 7 8 9 0 1取数据 smembers myset127.0.0.1:6379> sadd myset 1 2 3 4 5 6 7 8 9 0 1(integer) 10127.0.0.1:6379> smembers myset 阅读全文
posted @ 2018-04-28 18:24 宋发准 阅读(799) 评论(0) 推荐(0) 编辑
摘要: list 操作lpush:从左边插入lpush list 1 2 3 4 5 6 7 rpush:从右边插入rpush list2 1 2 3 4 5 6 7 查看数据lrange list 0 -1 弹出数据从左边弹出:lpop list 从右边弹出:rpop list2 获取长度llen lis 阅读全文
posted @ 2018-04-28 14:46 宋发准 阅读(122) 评论(0) 推荐(0) 编辑
摘要: hash 操作怎么设置hash一次设置一个值hset userinfo name sfz一次获取一个值hget userinfo age获取指定字段hmget userinfo name age一次设置多个值hmset param id 10 name sfz age 12 address beij 阅读全文
posted @ 2018-04-28 13:22 宋发准 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 基础操作1.set xxx aaa 设置xxx2.get xxx 获取xxx3.del xxx 删除xxx4.exists xxx 查看是否存在5.expire aaa 10 设置过期时间(秒)6.pexpire yyy 10000 设置过期时间(毫秒)7.persist user 删除过期时间(在 阅读全文
posted @ 2018-04-28 12:46 宋发准 阅读(1281) 评论(0) 推荐(0) 编辑
摘要: 1.开源的.2.高性能.写:每秒11万次.存:8万.内存数据库.支持数据持久化.3.基于key value 存储的.可以根据key获取value.4.支持主从备份5.value可以有多种,字符串,hash(man),列表(list),集合(set),有序集合(sorted set). 使用场景:1. 阅读全文
posted @ 2018-04-27 23:26 宋发准 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 今天配置了下ssm多数据源: 1.首先定义数据库 在这里定义了三个类, 这里主要是用来切换数据源的. 这是两个数据库的表使用MybatisGeneratorXml逆向工程生产的. 配置数据源 配置sqlSessionFactory 阅读全文
posted @ 2018-04-26 01:55 宋发准 阅读(2731) 评论(0) 推荐(0) 编辑
摘要: [root@localhost redis]# ./bin/redis-server ./redis.conf [root@localhost redis]# ./bin/redis-cli 127.0.0.1:6379> AUTH 123456 OK 127.0.0.1:6379> 阅读全文
posted @ 2018-04-18 23:11 宋发准 阅读(144) 评论(0) 推荐(0) 编辑
摘要: @JsonIgnore//不显示private String pwd;private Integer age;//格式化@JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss a" ,locale = "zh" ,timezone = "GMT+8")private D 阅读全文
posted @ 2018-04-17 23:34 宋发准 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 今天去面试发现自己的sql很差,多以打算恶补一下. 建表: DROP TABLE IF EXISTS `course`; CREATE TABLE `course` ( `Cno` varchar(10) DEFAULT NULL, `Cname` varchar(10) DEFAULT NULL, 阅读全文
posted @ 2018-04-04 17:11 宋发准 阅读(254) 评论(0) 推荐(0) 编辑
摘要: package binarytree; public class BinaryTree { private Node root; public void add(int data) { if (root == null) { root = new Node(data); } else { ro... 阅读全文
posted @ 2018-04-03 23:18 宋发准 阅读(103) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 10 下一页