mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-17 11:02:26 +00:00
Added #1875 Remove no longer accessed items from cache after certain amount of time
This commit is contained in:
@@ -27,9 +27,9 @@ import com.jpexs.helpers.Cache;
|
||||
*/
|
||||
public class AS2Cache {
|
||||
|
||||
private final Cache<ASMSource, HighlightedText> cache = Cache.getInstance(true, false, "as2");
|
||||
private final Cache<ASMSource, HighlightedText> cache = Cache.getInstance(true, false, "as2", false);
|
||||
|
||||
private final Cache<ASMSource, ActionList> pcodeCache = Cache.getInstance(true, true, "as2pcode");
|
||||
private final Cache<ASMSource, ActionList> pcodeCache = Cache.getInstance(true, true, "as2pcode", false);
|
||||
|
||||
public void clear() {
|
||||
pcodeCache.clear();
|
||||
|
||||
@@ -26,7 +26,7 @@ import com.jpexs.helpers.Cache;
|
||||
*/
|
||||
public class AS3Cache {
|
||||
|
||||
private final Cache<ScriptPack, HighlightedText> cache = Cache.getInstance(true, false, "as3");
|
||||
private final Cache<ScriptPack, HighlightedText> cache = Cache.getInstance(true, false, "as3", false);
|
||||
|
||||
public void clear() {
|
||||
cache.clear();
|
||||
|
||||
Reference in New Issue
Block a user