You are here

protected function MemcacheTestCase::setupLifetime in Memcache API and Integration 7

Same name and namespace in other branches
  1. 6 tests/memcache.test \MemcacheTestCase::setupLifetime()

Setup the lifetime settings for caching.

Parameters

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

File

tests/memcache6.test, line 101

Class

MemcacheTestCase

Code

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