Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: e9cff772c2
Fetching contributors…

Cannot retrieve contributors at this time

52 lines (41 sloc) 1.202 kB
--TEST--
Cache_Lite::Cache_Lite (classical)
--FILE--
<?php
require_once 'callcache.inc';
require_once 'tmpdir.inc';
require_once 'cache_lite_base.inc';
$options = array(
'cacheDir' => tmpDir() . '/',
'lifeTime' => 60
);
$Cache_Lite = new Cache_Lite($options);
multipleCallCache();
?>
--GET--
--POST--
--EXPECT--
==> First call (cache should be missed)
Cache Missed !
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Done !
==> Second call (cache should be hit)
Cache Hit !
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Done !
==> Third call (cache should be hit)
Cache Hit !
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Done !
==> We remove cache
Done !
==> Fourth call (cache should be missed)
Cache Missed !
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Done !
==> #5 Call with another id (cache should be missed)
Cache Missed !
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
Done !
==> We remove cache
Done !
Jump to Line
Something went wrong with that request. Please try again.