... |
... |
@@ -20,13 +20,9 @@ |
20 |
20 |
@startuml |
21 |
21 |
start |
22 |
22 |
|
23 |
|
-if(调用expireIfNeeded方法判断key是否过期) |
24 |
|
-note left |
25 |
|
-返回1代表已经过期 |
26 |
|
-endnote |
27 |
|
-then(1) |
|
23 |
+if(调用expireIfNeeded方法判断key是否过期)then(1) |
28 |
28 |
if(当前环境为主节点)then(yes) |
29 |
|
-:返回null; |
|
25 |
+:返回null; |
30 |
30 |
stop |
31 |
31 |
endif |
32 |
32 |
|
... |
... |
@@ -34,10 +34,9 @@ |
34 |
34 |
:返回null; |
35 |
35 |
stop |
36 |
36 |
endif |
37 |
|
-endif |
38 |
38 |
|
39 |
|
-:调用lookupKey方法,查询value的值; |
40 |
|
-if(返回值为空)then(yes) |
|
34 |
+:调用lookupKey方法,查询value的值; |
|
35 |
+if (返回值为空) then(yes) |
41 |
41 |
:缓存命中+1; |
42 |
42 |
else(no) |
43 |
43 |
:缓存非命中+1; |