document memcache requirement

This commit is contained in:
Robin Appelman 2023-02-07 14:26:03 +01:00
commit 577d704871
2 changed files with 2 additions and 1 deletions

View file

@ -59,3 +59,4 @@ shared lock from
- Currently, it only helps with conflicts from locks coming from a single request, conflicts between multiple requests are not covered. - Currently, it only helps with conflicts from locks coming from a single request, conflicts between multiple requests are not covered.
- The mapping between locks and unlocks isn't great, in cases with complex lock-unlock patterns the result might not be accurate. - The mapping between locks and unlocks isn't great, in cases with complex lock-unlock patterns the result might not be accurate.
- Currently only work with memcache/redis based locking.

View file

@ -41,7 +41,7 @@ class Application extends App implements IBootstrap {
public function __construct(array $urlParams = []) { public function __construct(array $urlParams = []) {
parent::__construct('lockpick', $urlParams); parent::__construct('lockpick', $urlParams);
// we are overly aggressive and rude in how we register out locking provider to ensure it gets picked up early // we are overly aggressive and rude in how we register our locking provider to ensure it gets picked up early
\OC::$server->registerService(ILockingProvider::class, function (ContainerInterface $c) { \OC::$server->registerService(ILockingProvider::class, function (ContainerInterface $c) {
$config = $c->get(IConfig::class); $config = $c->get(IConfig::class);
$ttl = $config->getSystemValue('filelocking.ttl', 3600); $ttl = $config->getSystemValue('filelocking.ttl', 3600);