|
|
| version 1.1, 2007/04/23 14:45:35 | version 1.5, 2007/04/23 15:23:04 |
|---|---|
| Line 7 $hf[^hashfile::open[$sName]] | Line 7 $hf[^hashfile::open[$sName]] |
| ^checkFiles[$sName] | ^checkFiles[$sName] |
| <hr /> | <hr /> |
| Storing 3 values and show all items...<br /> | Storing 4 values and show all items...<br /> |
| ^put[$hf;1;value 1](1) | ^put[$hf;0;value 0;^date::now(+2/24/60/60)] |
| ^put[$hf;2;value 2](3) | ^put[$hf;1;value 1](2) |
| ^put[$hf;3;value 3](4) | ^put[$hf;2;value 2](5) |
| ^put[$hf;3;value 3](6) | |
| ^print[$hf] | ^print[$hf] |
| <hr /> | <hr /> |
| Line 28 Removing one value and show all items... | Line 29 Removing one value and show all items... |
| ^print[$hf] | ^print[$hf] |
| <hr /> | <hr /> |
| Waiting for a 2 secs and show all items... | Waiting for a 3 secs and show all items... |
| ^sleep(2) | ^sleep(3) |
| ^print[$hf] | ^print[$hf] |
| <hr /> | <hr /> |
| Line 46 Delete files and check if they exists... | Line 47 Delete files and check if they exists... |
| <hr /> | <hr /> |
| Put value and check auto re-opening... | Put value and check auto re-opening... |
| ^put[$hf;1;value 1](1) | ^put[$hf;1;value 1] |
| ^checkFiles[$sName] | ^checkFiles[$sName] |
| # finalizing: remove files for make next test start working well | # finalizing: remove files for make next test start working well |
| Line 54 Put value and check auto re-opening... | Line 55 Put value and check auto re-opening... |
| @put[hf;sKey;sValue;iTime] | @put[hf;sKey;sValue;uExpires] |
| $hf.$sKey[ | $hf.$sKey[ |
| $.value[$sValue] | $.value[$sValue] |
| $.expires($iTime/24/60/60) | ^if(def $uExpires){ |
| ^if($uExpires is "date"){ | |
| $.expires[$uExpires] | |
| }{ | |
| $.expires($uExpires/24/60/60) | |
| } | |
| } | |
| ] | ] |