forked from github/dataease
fix: 引擎缓存
This commit is contained in:
parent
b854da1a39
commit
575010708b
@ -31,7 +31,7 @@ public class JdbcProvider extends DefaultJdbcProvider {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isUseDatasourcePool(){
|
public boolean isUseDatasourcePool(){
|
||||||
return false;
|
return true;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String getType(){
|
public String getType(){
|
||||||
|
@ -150,10 +150,10 @@ public class EngineService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void setDs(DeEngine engine) {
|
private void setDs(DeEngine engine) {
|
||||||
CacheUtils.remove("ENGINE", "SimpleKey []");
|
CacheUtils.removeAll("ENGINE");
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Cacheable(value = "ENGINE")
|
@Cacheable(value = "ENGINE")
|
||||||
public Datasource getDeEngine() throws Exception {
|
public Datasource getDeEngine() throws Exception {
|
||||||
Datasource datasource = new Datasource();
|
Datasource datasource = new Datasource();
|
||||||
|
|
||||||
|
@ -249,6 +249,17 @@
|
|||||||
timeToLiveSeconds="3600"
|
timeToLiveSeconds="3600"
|
||||||
memoryStoreEvictionPolicy="LRU"
|
memoryStoreEvictionPolicy="LRU"
|
||||||
/>
|
/>
|
||||||
|
<cache
|
||||||
|
name="ENGINE"
|
||||||
|
eternal="false"
|
||||||
|
maxElementsInMemory="100"
|
||||||
|
maxElementsOnDisk="1000"
|
||||||
|
overflowToDisk="true"
|
||||||
|
diskPersistent="true"
|
||||||
|
timeToIdleSeconds="1800"
|
||||||
|
timeToLiveSeconds="3600"
|
||||||
|
memoryStoreEvictionPolicy="LRU"
|
||||||
|
/>
|
||||||
|
|
||||||
|
|
||||||
</ehcache>
|
</ehcache>
|
Loading…
Reference in New Issue
Block a user