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

16
LINES

< > BotCompany Repo | #1025249 // Clean JavaX Cache Every Hour

JavaX source code (Dynamic Module) [tags: use-pretranspiled] - run with: Stefan's OS

Uses 1059K of libraries. Click here for Pure Java version (5702L/28K).

!7

cmodule2 CleanJavaXCache > DynPrintLogAndEnabled {
  switchable int retentionHours = 48;
  switchable bool verbose = true;
  
  start {
    // Do it after 10 secs if module was just added, otherwise wait an hour
    doEvery(dm_osStarting() ? 3600.0 : 10.0, 3600.0, r doIt);
  }
  
  void doIt enter {
    if (!enabled) ret;
    cleanJavaXCache(retentionHours, verbose);
  }
}

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1025249
Snippet name: Clean JavaX Cache Every Hour
Eternal ID of this version: #1025249/7
Text MD5: 07635cd5bc4ee4a282345b1172317001
Transpilation MD5: 5c127ea4da13e8a0c96ba543825afc36
Author: stefan
Category: javax
Type: JavaX source code (Dynamic Module)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-03-26 14:31:51
Source code size: 394 bytes / 16 lines
Pitched / IR pitched: No / No
Views / Downloads: 244 / 75945
Version history: 6 change(s)
Referenced in: [show references]