You are here

protected function ApcCacheTestCase::setupLifetime in APC - Alternative PHP Cache 7

Setup the lifetime settings for caching.

Parameters

$time: The time in seconds the cache should minimal live.

File

tests/apc.test, line 103

Class

ApcCacheTestCase

Code

protected function setupLifetime($time) {
  variable_set('cache_lifetime', $time);
  variable_set('cache_flush', 0);
}