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

8
LINES

< > BotCompany Repo | #1020240 // keriyo_resized_cached

JavaX fragment (include)

static Map<Pair<S, Int>, BufferedImage> keriyo_resized_cache = syncExpiringMap(3600.0);

static BufferedImage keriyo_resized_cached(S code, int width) {
  BufferedImage img = keriyo_resized_cache.get(pair(code, width));
  if (img == null) mapPut(keriyo_resized_cache, pair(code, width),
    img = resizeImage(keriyo(code), width));
  ret img;
}

Author comment

Began life as a copy of #1020233

download  show line numbers  debug dex  old transpilations   

Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1020240
Snippet name: keriyo_resized_cached
Eternal ID of this version: #1020240/3
Text MD5: 8558845d37732c65b651a6ee45bc47c4
Author: stefan
Category: javax / smilies
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-12-11 14:00:47
Source code size: 351 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 222 / 242
Version history: 2 change(s)
Referenced in: [show references]