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

21
LINES

< > BotCompany Repo | #1000480 // A cache component (draft)

Document

A cache component

[[
class Cache {
  Object value;
  Time loaded;
  Function hasher;

  getLocal: return value;
  getLocalHash: return hasher.process(value);
  abstract load;
  getFresh() {
    load();
    return value;
  }
}
]]

"abstract" _ "load" _ ";"

etc...

download  show line numbers   

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

No comments. add comment

Snippet ID: #1000480
Snippet name: A cache component (draft)
Eternal ID of this version: #1000480/1
Text MD5: 289dd5eaa5cc2c5456adc8ade649cda1
Author: stefan
Category:
Type: Document
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2015-08-08 19:42:19
Source code size: 284 bytes / 21 lines
Pitched / IR pitched: No / Yes
Views / Downloads: 541 / 144
Referenced in: [show references]