mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 15:35:55 +08:00
better code
This commit is contained in:
parent
2388d0dfe2
commit
b110651cba
2
@rbv
2
@rbv
|
@ -1 +1 @@
|
|||
Subproject commit 1e3c69cea614dddb82b88a76406ed60767b91ebe
|
||||
Subproject commit c95ee7a627d50df83e3a9ca5b7f5f68616d876e7
|
|
@ -77,9 +77,11 @@ public class KVStorage {
|
|||
|
||||
if (Application.isReady()) {
|
||||
// 0. 从缓存
|
||||
value = Application.getCommonsCache().get(key);
|
||||
if (value != null && !noCache) {
|
||||
return value;
|
||||
if (!noCache) {
|
||||
value = Application.getCommonsCache().get(key);
|
||||
if (value != null) {
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
||||
// 1. 从数据库
|
||||
|
|
Loading…
Reference in a new issue