Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

4
LINES

< > BotCompany Repo | #1011099 // clearAllCaches - clear all cache variables (any variable ending with _cache, can be map, collection, Cache...)

JavaX fragment (include)

static void clearAllCaches() {
  for (S field : allCacheVars())
    pcallOpt(getOptMC(field), 'clear);
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011099
Snippet name: clearAllCaches - clear all cache variables (any variable ending with _cache, can be map, collection, Cache...)
Eternal ID of this version: #1011099/5
Text MD5: 7d3c565e92e217ea1943b62785c8f440
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-06-02 14:57:52
Source code size: 107 bytes / 4 lines
Pitched / IR pitched: No / No
Views / Downloads: 470 / 511
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)
#1011100 - mcFields - field names of main class
#1014253 - mechLists_clearCache
#1015976 - allCacheVars - try to find all cache variables in program (any variable ending with _cache, can be map, collection, Cache...)