mirror of
https://github.com/icewind1991/lockpick.git
synced 2026-06-03 17:24:09 +02:00
document memcache requirement
This commit is contained in:
parent
be08c09e99
commit
577d704871
2 changed files with 2 additions and 1 deletions
|
|
@ -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.
|
||||||
|
|
|
||||||
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue