[ Index ] |
|
Code source de PHP PEAR 1.4.5 |
1 --TEST-- 2 Cache_Lite::Cache_Lite (fatest, no control, no lock) 3 --FILE-- 4 <?php 5 6 require_once ('callcache.inc'); 7 require_once ('tmpdir.inc'); 8 require_once ('cache_lite_base.inc'); 9 10 $options = array( 11 'cacheDir' => tmpDir() . '/', 12 'lifeTime' => 60, 13 'fileLocking' => false, 14 'writeControl' => false, 15 'readControl' => false, 16 'fileNameProtection' => false 17 ); 18 19 $Cache_Lite = new Cache_Lite($options); 20 multipleCallCache(); 21 22 ?> 23 --GET-- 24 --POST-- 25 --EXPECT-- 26 ==> First call (cache should be missed) 27 Cache Missed ! 28 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 29 Done ! 30 31 ==> Second call (cache should be hit) 32 Cache Hit ! 33 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 34 Done ! 35 36 ==> Third call (cache should be hit) 37 Cache Hit ! 38 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 39 Done ! 40 41 ==> We remove cache 42 Done ! 43 44 ==> Fourth call (cache should be missed) 45 Cache Missed ! 46 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 47 Done ! 48 49 ==> #5 Call with another id (cache should be missed) 50 Cache Missed ! 51 0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 52 Done ! 53 54 ==> We remove cache 55 Done !
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 14:08:00 2007 | par Balluche grâce à PHPXref 0.7 |