mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 23:45: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,10 +77,12 @@ public class KVStorage {
|
||||||
|
|
||||||
if (Application.isReady()) {
|
if (Application.isReady()) {
|
||||||
// 0. 从缓存
|
// 0. 从缓存
|
||||||
|
if (!noCache) {
|
||||||
value = Application.getCommonsCache().get(key);
|
value = Application.getCommonsCache().get(key);
|
||||||
if (value != null && !noCache) {
|
if (value != null) {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 1. 从数据库
|
// 1. 从数据库
|
||||||
Object[] fromDb = Application.createQueryNoFilter(
|
Object[] fromDb = Application.createQueryNoFilter(
|
||||||
|
|
Loading…
Reference in a new issue