forked from JamBrain/JamBrain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cache-js-test.php
24 lines (21 loc) · 1013 Bytes
/
cache-js-test.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
require_once __DIR__ . "/../web.php";
// HTML Library Configuration //
const HTML_USE_CORE = true;
const HTML_USE_STARSHIP = true;
const HTML_SHOW_FOOTER = true;
?>
<?php template_GetHeader(); ?>
hey <br />
<br />
<span onclick="if ( cache_Store('moofer',10,5000) ) console.log(this.innerHTML);">[Store 10]</span>
<span onclick="if ( cache_Store('moofer',20,5000) ) console.log(this.innerHTML);">[Store 20]</span>
<span onclick="if ( cache_Create('moofer',30,5000) ) console.log(this.innerHTML);">[Create 30]</span>
<span onclick="console.log(this.innerHTML,cache_Fetch('moofer'));">[Read]</span>
<span onclick="console.log(this.innerHTML,cache_Exists('moofer'));">[Exists]</span>
<span onclick="if ( cache_Touch('moofer',5000) ) console.log(this.innerHTML);">[Touch]</span>
<span onclick="cache_Flush(); console.log(this.innerHTML);">[Flush]</span>
<span onclick="if ( cache_Store('ooferdoo',33,7000) ) console.log(this.innerHTML);">[Other Store 33]</span>
<br />
<br />
<?php template_GetFooter(); ?>