IDEMPIERE-491 Caching data can generate problem. Refactor the caching code, added distributed cache and cluster wide cache reset support.
This commit is contained in:
parent
c8b4a158b7
commit
ef584a5f60
|
@ -55,7 +55,7 @@ public class MBank extends X_C_Bank
|
||||||
|
|
||||||
/** Cache */
|
/** Cache */
|
||||||
private static CCache<Integer,MBank> s_cache =
|
private static CCache<Integer,MBank> s_cache =
|
||||||
new CCache<Integer,MBank> ("C_Bank", 3);
|
new CCache<Integer,MBank> (Table_Name, 3);
|
||||||
|
|
||||||
|
|
||||||
/**************************************************************************
|
/**************************************************************************
|
||||||
|
|
|
@ -56,7 +56,7 @@ public class MBankAccount extends X_C_BankAccount
|
||||||
|
|
||||||
/** Cache */
|
/** Cache */
|
||||||
private static CCache<Integer,MBankAccount> s_cache
|
private static CCache<Integer,MBankAccount> s_cache
|
||||||
= new CCache<Integer,MBankAccount>("C_BankAccount", 5);
|
= new CCache<Integer,MBankAccount>(Table_Name, 5);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bank Account Model
|
* Bank Account Model
|
||||||
|
|
Loading…
Reference in New Issue