public function MemcacheCacheTest::testLongLifetime in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/cache/tests/Doctrine/Tests/Common/Cache/MemcacheCacheTest.php \Doctrine\Tests\Common\Cache\MemcacheCacheTest::testLongLifetime()
File
- vendor/
doctrine/ cache/ tests/ Doctrine/ Tests/ Common/ Cache/ MemcacheCacheTest.php, line 41
Class
Namespace
Doctrine\Tests\Common\CacheCode
public function testLongLifetime() {
$cache = $this
->_getCacheDriver();
$cache
->save('key', 'value', 30 * 24 * 3600 + 1);
$this
->assertTrue($cache
->contains('key'), 'Memcache provider should support TTL > 30 days');
}