{"id":25839748,"url":"https://github.com/netresearch/t3x-nr_lock","last_synced_at":"2025-11-23T16:04:43.375Z","repository":{"id":19229027,"uuid":"22463542","full_name":"netresearch/t3x-nr_lock","owner":"netresearch","description":"Move TYPO3 locking into redis/couchbase","archived":false,"fork":false,"pushed_at":"2014-08-25T12:18:32.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":18,"default_branch":"master","last_synced_at":"2024-04-15T02:08:26.697Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/netresearch.png","metadata":{"files":{"readme":"README.rst","changelog":"ChangeLog","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-07-31T09:19:21.000Z","updated_at":"2022-11-15T10:15:58.000Z","dependencies_parsed_at":"2022-08-01T03:18:42.488Z","dependency_job_id":null,"html_url":"https://github.com/netresearch/t3x-nr_lock","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Ft3x-nr_lock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Ft3x-nr_lock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Ft3x-nr_lock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/netresearch%2Ft3x-nr_lock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/netresearch","download_url":"https://codeload.github.com/netresearch/t3x-nr_lock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241317608,"owners_count":19943199,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-03-01T04:34:16.831Z","updated_at":"2025-11-23T16:04:38.331Z","avatar_url":"https://github.com/netresearch.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Netresearch distributed lock manager\n====================================\n\n.. contents:: Contents\n\n\nOverview\n========\n\nNR_Lock is a distributed lock manager (DLM).\nThis is designed for multiple TYPO3 frontend servers using a single typo3temp\nshare and Database.\nNR_Lock currently supports single Redis or Couchbase (experimental) caching\nserver as locking instance.\nIt replaces/extends the TYPO3 lock facility t3lib_lock.\n\n\nRequirements\n============\n\n- Redis: =\u003e 2.4 - 2.8\n- Couchbase: =\u003e ???\n- PHP =\u003e 5.3 - 5.5\n- TYPO3 =\u003e 4.5 - 6.2\n- PHP/redis =\u003e 1.6\n\n\nInstallation\n============\n\nInstallation is done by TYPO3 extension manager.\n\n\nConfiguration\n=============\n\nTo set up NR_Lock as a replacement for t3lib_lock you need to alter your\nlocalconf.php in /typo3conf/ and add the following lines::\n\n    $arLockCfg = \u0026$TYPO3_CONF_VARS['SYS']['locking'];\n\n    if (extension_loaded('redis')) {\n        $arLockCfg = array(\n            'backend' =\u003e '\\Netresearch\\Lock\\Backend_Redis',\n            'options' =\u003e array(\n                //'hostname'         =\u003e 'localhost',\n                //'port'             =\u003e 6379,\n                //'database'         =\u003e 0,\n                //'password'         =\u003e '',\n                //'compression'      =\u003e false,\n                //'compressionLevel' =\u003e 1,\n            ),\n        );\n    } elseif (extension_loaded('couchbase')) {\n        $arLockCfg = array(\n            'backend' =\u003e '\\Netresearch\\Lock\\Backend_Couchbase',\n            'options' =\u003e array(\n                'servers' =\u003e array(\n                    'localhost',\n                ),\n            ),\n        );\n    }\n\n\nToDo\n====\n\n- Support multiple caching server.\n- Test using LIST for locks with redis (performance).\n- Use nr_lock in TYPO3 6.2 ClassLoader - this is currently hard coded in the TYPO3 core\n\nReferences\n==========\n\n- http://www.couchbase.com/\n- http://www.redis.io/\n- http://redis.io/topics/distlock\n- https://engineering.gosquared.com/distributed-locks-using-redis\n- https://github.com/ronnylt/redlock-php\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetresearch%2Ft3x-nr_lock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnetresearch%2Ft3x-nr_lock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnetresearch%2Ft3x-nr_lock/lists"}