Cache\Adapter\Memcached\Tests\MemcachedCachePoolTest::testTimeToLiveMoreThan30days PHP Method

testTimeToLiveMoreThan30days() public method

Ensures that items with a TTL larger than 30 days can be stored in memcached https://github.com/memcached/memcached/wiki/Programming#expiration.
    public function testTimeToLiveMoreThan30days()
    {
        $pool = $this->createCachePool();
        $item = $pool->getItem('365days');
        $item->set('4711');
        $item->expiresAfter(86400 * 365);
        $pool->save($item);
        $this->assertTrue($pool->getItem('365days')->isHit(), 'Item is not stored correctly');
    }
MemcachedCachePoolTest