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