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

16
LINES

< > BotCompany Repo | #1007414 // aiConceptsMap_cached (key = global id)

JavaX fragment (include)

1  
static Cache<Map<S, AIConcept>> aiConceptsMap_cached_cache = new Cache(f aiConceptsMap);
2  
static double aiConceptsMap_cached_autoClearInterval = 30;
3  
4  
static Map<S, AIConcept> aiConceptsMap_cached() {
5  
  aiConceptsMap_cached_cache.clear(aiConceptsMap_cached_autoClearInterval);
6  
  ret aiConceptsMap_cached_cache!;
7  
}
8  
9  
static void aiConceptsMap_clearCache() {
10  
  aiConceptsMap_cached_cache.clear();
11  
}
12  
13  
// clear cache if older than x seconds
14  
static void aiConceptsMap_clearCache(double seconds) {
15  
  aiConceptsMap_cached_cache.clear(seconds);
16  
}

Author comment

Began life as a copy of #1007162

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: #1007414
Snippet name: aiConceptsMap_cached (key = global id)
Eternal ID of this version: #1007414/9
Text MD5: 049c6d73ae77006972c86c9c835d969e
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-03-28 02:24:27
Source code size: 550 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 615 / 626
Version history: 8 change(s)
Referenced in: [show references]