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


< > BotCompany Repo | #1028065 - mmo_parsePattern_cached

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3327L/20K).

scope mmo_parsePattern_cached.

static Map<S, MMOPattern> #cache = synchronizedMRUCache(1000);

static MMOPattern mmo_parsePattern_cached(S s) {
  MMOPattern tok = cache.get(s);
  if (tok == null) cache.put(s, tok = mmo_parsePattern(s));
  ret tok;

end scope

Author comment

Began life as a copy of #1026499

download  show line numbers  debug dex   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, xrpafgyirdlv

No comments. add comment

Snippet ID: #1028065
Snippet name: mmo_parsePattern_cached
Eternal ID of this version: #1028065/3
Text MD5: d3ba7acfb9ed5d9a4111096bceae61a9
Transpilation MD5: 68c535c650783005d385541c13292344
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2020-05-15 15:17:07
Source code size: 271 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 26 / 67
Version history: 2 change(s)
Referenced in: [show references]

Formerly at &