Skip to content

Commit e3ce566

Browse files
committed
redis 简单使用
1 parent a71c299 commit e3ce566

File tree

2 files changed

+15
-11
lines changed

2 files changed

+15
-11
lines changed

spring-boot-15-Redis/README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@
88
- 原子 – Redis的所有操作都是原子性的,同时Redis还支持对几个操作全并后的原子性执行
99
- 丰富的特性 – Redis还支持 publish/subscribe, 通知, key 过期等等特性
1010

11-
- ##### [Redis简单使用](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-sample/)
11+
- #### [Redis.....................简单使用](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-sample/)
1212

13-
- ##### [Redis作Cache](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-cache)
13+
- ##### [Redis.....................Cache](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-cache)
1414

15-
- ##### [Redis作Session](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-session)
15+
- #### [Redis.....................Session](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-session)
1616

17-
- ##### [Redis作MQ](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-mq)
17+
- #### [Redis.....................MQ](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-mq)
1818

19-
- ##### [Redis作集群](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-cluster)
19+
- #### [Redis.....................集群](https://github.com/timebusker/spring-boot/tree/master/spring-boot-15-Redis/spring-boot-15-Redis-cluster)
2020

2121

2222

2323
### 相关文章
2424

2525
- [Redis 教程](http://www.runoob.com/redis/redis-intro.html)
2626
- [Spring Boot with Redis](http://www.jianshu.com/p/a2ab17707eff)
27-
- [Spring Boot中使用Redis数据库](http://blog.didispace.com/springbootredis/)
27+
- [Spring Boot中使用Redis数据库](http://blog.didispace.com/springbootredis/)
28+
- [Spring Boot 整合 Redis 实现缓存操作](http://www.bysocket.com/?p=1756)

spring-boot-15-Redis/spring-boot-15-Redis-sample/README.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020
// template.afterPropertiesSet();
2121
return template;
2222
}
23-
```
23+
```
2424
* 单元测试
25-
```
25+
26+
27+
```
2628
@Test
2729
public void test() throws Exception {
2830
System.out.println("\n******************************************************\n");
@@ -36,10 +38,11 @@
3638
System.out.println("\n\n\n" + admina.getUsername());
3739
System.out.println("\n******************************************************\n");
3840
}
39-
```
40-
* service类
41+
```
42+
* service类
43+
4144

42-
```
45+
```
4346
public Object addObject(String key) throws Exception {
4447
key = "蝙蝠侠";
4548
AdministratorTest admin = new AdministratorTest("蝙蝠侠", "20", "1010", "TOOOM");

0 commit comments

Comments
 (0)