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).

1  
!7
2  
3  
cmodule2 CleanJavaXCache > DynPrintLogAndEnabled {
4  
  switchable int retentionHours = 48;
5  
  switchable bool verbose = true;
6  
  
7  
  start {
8  
    // Do it after 10 secs if module was just added, otherwise wait an hour
9  
    doEvery(dm_osStarting() ? 3600.0 : 10.0, 3600.0, r doIt);
10  
  }
11  
  
12  
  void doIt enter {
13  
    if (!enabled) ret;
14  
    cleanJavaXCache(retentionHours, verbose);
15  
  }
16  
}

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: 246 / 75947
Version history: 6 change(s)
Referenced in: [show references]