Skip to content

Commit

Permalink
Fix wrong if statement in Redis.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jiabinl committed Jan 5, 2020
1 parent 191c618 commit 68151d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/database/Redis/Redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public Object getObjectInclNullById(Integer id) {
// 从缓存中获取数据
Object cacheValue = cache.get(id);
// 缓存为空
if (cacheValue != null) {
if (cacheValue == null) {
// 从数据库中获取
Object storageValue = storage.get(key);
// 缓存空对象
Expand Down Expand Up @@ -367,4 +367,4 @@ public Object getObjectInclNullById(Integer id) {

**Java工程师必备学习资源:** 一些Java工程师常用学习资源公众号后台回复关键字 **“1”** 即可免费无套路获取。

![我的公众号](https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-6/167598cd2e17b8ec.png)
![我的公众号](https://my-blog-to-use.oss-cn-beijing.aliyuncs.com/2019-6/167598cd2e17b8ec.png)

0 comments on commit 68151d9

Please sign in to comment.