mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-07 23:34:27 +02:00
20 lines
361 B
PHP
20 lines
361 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Core\Cache\ArrayCache;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
class ArrayCacheLockTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
return new CacheLockDriver(new ArrayCache('localhost'));
|
|
}
|
|
|
|
public function testLockTTL()
|
|
{
|
|
// ArrayCache doesn't support TTL
|
|
return true;
|
|
}
|
|
}
|