Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Cache_Lite::Cache_Lite (classical)
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
);
14
 
15
$Cache_Lite = new Cache_Lite($options);
16
multipleCallCache();
17
 
18
?>
19
--GET--
20
--POST--
21
--EXPECT--
22
==> First call (cache should be missed)
23
Cache Missed !
24
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
25
Done !
26
 
27
==> Second call (cache should be hit)
28
Cache Hit !
29
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
30
Done !
31
 
32
==> Third call (cache should be hit)
33
Cache Hit !
34
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
35
Done !
36
 
37
==> We remove cache
38
Done !
39
 
40
==> Fourth call (cache should be missed)
41
Cache Missed !
42
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
43
Done !
44
 
45
==> #5 Call with another id (cache should be missed)
46
Cache Missed !
47
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
48
Done !
49
 
50
==> We remove cache
51
Done !