mirror of
https://github.com/friendica/friendica
synced 2025-02-26 01:58:13 +00:00
20 lines
349 B
PHP
20 lines
349 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Core\Cache\ArrayCache;
|
|
use Friendica\Core\Lock\CacheLock;
|
|
|
|
class ArrayCacheLockTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
return new CacheLock(new ArrayCache('localhost'));
|
|
}
|
|
|
|
public function testLockTTL()
|
|
{
|
|
// ArrayCache doesn't support TTL
|
|
return true;
|
|
}
|
|
}
|