Skip to content

Commit 89cc1ac

Browse files
committed
Update Predis Connection String and remove RedisReplication
1 parent 44bbc76 commit 89cc1ac

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Symfony/Component/Cache/Tests/Adapter/PredisTagAwareReplicationAdapterTest.php

+15
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,19 @@ public function createCachePool(int $defaultLifetime = 0, ?string $testMethod =
3434

3535
return $adapter;
3636
}
37+
38+
/**
39+
* @runInSeparateProcess
40+
*/
41+
public function testClearWithPrefix()
42+
{
43+
$cache = $this->createCachePool(0, __FUNCTION__);
44+
45+
$cache->save($cache->getItem('foo')->set('bar'));
46+
sleep(1);
47+
$this->assertTrue($cache->hasItem('foo'));
48+
49+
$cache->clear();
50+
$this->assertFalse($cache->hasItem('foo'));
51+
}
3752
}

0 commit comments

Comments
 (0)