{"_id":"@damon35868/nestjs-simple-redis-lock","_rev":"23-3f49c7972a6ab8f5fff6c1dadacf3cb3","name":"@damon35868/nestjs-simple-redis-lock","dist-tags":{"latest":"1.1.8"},"versions":{"1.0.0":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.0","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.0","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"c9f901477d72ca2b52ff9ffdad855e1e0cd0a049","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.0.tgz","fileCount":28,"integrity":"sha512-dAi2pjQlmEMQb6P7rwwpc2b5QDAijr1a2EnBAh8wF7ndxXifHr6c4ufaEJKdBYXREO/C9Hipuk7KyzuFu4DaBw==","signatures":[{"sig":"MEUCIQD4LOxsDIfVFaHbBsgUMkz7GfXuOZX8bSizz5yIVPW3SwIgPZLf0nlPWzMN3TV/ft435lqVVxg3xzsQDlOB6IRlLss=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133155},"main":"index.js","types":"./index.d.ts","gitHead":"f5e1777fb2815ad0f7cdf3e43f8c3e10473407d8","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.0_1712723143931_0.8176774739881671","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.1","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.1","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"371623338c01d2dcc2b0488fdb65364dac29bba4","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.1.tgz","fileCount":28,"integrity":"sha512-8RzQNZxFCnWy/41JcN6Qp9qQ/9f+J3W0H+ohCwCEeXG65LffiL9ehXo3dznafa8+fU+T2JJrG2V1aCurpHD/NA==","signatures":[{"sig":"MEQCIB5fNF5jaGI93QIFYPKVdtdglPqy3o0IZk4imfKtAy5IAiBp3aqfernW0bpP6WydvmhTkNDGwS9KwWnAwzED3+JB2w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133196},"main":"index.js","types":"./index.d.ts","gitHead":"4001d1c60c12a516afbd9f98c78637a9b63ce991","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.1_1712723286550_0.09791631177524929","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.2","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.2","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"e24085e3e6ac71b9285449e7480f458bf3c61a20","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.2.tgz","fileCount":28,"integrity":"sha512-cSxl930ZEz3DWTTPh9tWtv5JsDP3w+xF9R7coY4tLUu9RvycMoc4axkf4ozDlJv5POxfgd9WqDQYerq5XKuzgA==","signatures":[{"sig":"MEUCIE8MkZg5rYE2Cv38kqUPKmpwZ/YAq0ZAcFW3iiWTv8gIAiEA/8jfD2nTi7oGW8f7HTnSHyULjfH70xCZJbCpuNVbAUY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133197},"main":"index.js","types":"./index.d.ts","gitHead":"b40ac9204f5e519250c3fa872945eb9b93bfc6df","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.2_1712723909159_0.4000143560020113","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.3","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.3","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"f3c27e6db5f7745dcb4f0d46a92c3eed35fde442","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.3.tgz","fileCount":28,"integrity":"sha512-WP3P30WJ3aCvX0ylQpAxTj8MOnC5CQxJkKrV3aVL+6Rfg+ONDB9RwUZ555vzjrEsFuYK67wnIx4f2twO2P/v5Q==","signatures":[{"sig":"MEUCIQD9W+aW9pLfajaUZDuVcNmsXOZx1ilsnhUCG/RPTsJtXAIgak8pIinUwBB0l9ytBnopUMa8B8iFjkRsQOMKdBZ6NEM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133198},"main":"index.js","types":"./index.d.ts","gitHead":"f47221953ad228bfaf642e20fc0cebbad368a10f","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.3_1712724027159_0.11829071517791956","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.4","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.4","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"1ec13d37cbfbe62c8acffd37cc61e298ae275d56","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.4.tgz","fileCount":28,"integrity":"sha512-TXuMCvD6+z4HRtalTTLpjZP9GF/wKuCQyRqkWC7r+B5msK87fRyMuVnZ0eGr7Hq2qiWcgTNl/6fDo7JAGZIt1A==","signatures":[{"sig":"MEUCIC2wmnJII6Nc91MyXXgcGfVCMFejRcIoz4uF5R8KFznaAiEAxSlM8J8GOe0OTwhbkRaF3QYQjLDR57H6ndsBHKdR5Cs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133275},"main":"index.js","types":"./index.d.ts","gitHead":"a1e82868f2faa66cfb6dfa14db9554cab61cd357","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.4_1712726523842_0.4606892309392552","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.5","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.5","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"dabe2158d391516692a0b823f37667c1467df88a","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.5.tgz","fileCount":28,"integrity":"sha512-djQ80uwccUPH7+s3/F+6nW+Nv8bTVoK7IJk2LfwrFNuvROIbt/pdUKEtj3CZJ7a5NFeCid/tvouXpUMCnc0dDg==","signatures":[{"sig":"MEYCIQC68XoPGjpzdi6MDztfAiSB0yEHUkj0IADvFD9pal3GfwIhAMYAlQIZSyEQR1ntRCjkH4k9PDjiJr0xhMvjg4tH/IJN","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133421},"main":"index.js","types":"./index.d.ts","gitHead":"7937d2ba6c97f2b16d7f7f4ba75f0f7ae4d6fa89","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.5_1712727559324_0.6310627441429455","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.6","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.6","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"b2f62d7ce1e1608cd852002a9e0f351229094887","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.6.tgz","fileCount":28,"integrity":"sha512-HNskjD6p8h0f8DtgBOwJFPR1fcO+g2dWLSVg/xkA0GwMPKqCO0jVDWB/ErtkDHRPjnxsZwsFtHjwqayF5kVcgQ==","signatures":[{"sig":"MEUCIDapRiCGeY9tmp9tMYnLi8Hdaw0XJZBI7lyt8qKUVhWxAiEA1/GN6nkfjcmp/bFzN8QnKJbUaIfakAKqCyMJbJVU2OM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133772},"main":"index.js","types":"./index.d.ts","gitHead":"8d0ac3eca345a0f31f4f8384136434ddf8b22823","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.6_1712728587192_0.0600221140498427","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.7","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.7","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"4ce342fbebb946dcef446fa5e9110d3249975a68","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.7.tgz","fileCount":28,"integrity":"sha512-ZHk23fmfQasrb/KYQDMuqX2yCm4GtkPfpedqKGSmM+MGqAS/jyhZv4WMJ+9MOLF1NedGzirlOWX71VmXMFFwTQ==","signatures":[{"sig":"MEYCIQDjhY6rab+V9Z8+k+U77UPZYRhiYY3tenM+CsG4Tvf5QAIhAOWaCK0gH24SXhgh0RFGdLgecT1x5BAAkT1ANMQjVTK5","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134265},"main":"index.js","types":"./index.d.ts","gitHead":"049be4629be4141af87ccddffaf9a0aae61e6956","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.7_1712729727768_0.002507798493582847","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.8","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.8","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"c61368e813e775f4d79b52d7cb104096e47dd434","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.8.tgz","fileCount":28,"integrity":"sha512-U7GK6kEjzaPaDc8lixuhtwmF/8EagoWpkPQBXWowbQglrBMKIv4Y2dtsX1M3Gl6hpZXPeAv+5npZ6jZt2JGazQ==","signatures":[{"sig":"MEQCIBM2fhU+1Tz52zMUvAi6QdQPUGIFNHCNMH4KvvTZvrSAAiBtIcn5v+W8x/fVU7XRsTS/SxHZS5KgJ4M9oxYWxx6KDg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134312},"main":"index.js","types":"./index.d.ts","gitHead":"049be4629be4141af87ccddffaf9a0aae61e6956","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.8_1712730023834_0.31221104865217386","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.0.9","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.0.9","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"c8c25c5d8e4942f973e43829bab1222723a4d912","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.0.9.tgz","fileCount":28,"integrity":"sha512-EpGFx6qJm8YlFQ06tpoAsjrP9M3EnQTBmcFG6fVGm+e0mkDNBJLhKGJpUPjFZoLEsmDdbrsjKGPkF8ciyrgdsw==","signatures":[{"sig":"MEUCIAUuQ3G0T8mf5qA91fxwyPrXyrVC47oPQizjAQ0H+KZ7AiEA/zv9KPeWso3PyKhX6qS8qZ77BXfVj4kMgf6O8UgrOCM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":133975},"main":"index.js","types":"./index.d.ts","gitHead":"4a0311b4bc3935bc937ba89297e74e2677de2c00","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.0.9_1712730762032_0.33015131640727224","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.0","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.0","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"07b2c18c52feb179df59469eae362e2906d1d14a","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.0.tgz","fileCount":28,"integrity":"sha512-f6Va8BLc3582L0M0V7iEMF2hx6VnFMbT1NeA/IZhbrvvy9Jzqi4LQlNvGNXxQVrOuTOr1AK9lJKmV+e/D//w/A==","signatures":[{"sig":"MEYCIQCbNK1sB1I37jS7l58HHeUIWiIv1THPc78riy/Mb46hkAIhALu/Pmt4T4/tNeGUNgCwawJrjip+J2ypODn1v0HpOO3z","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134298},"main":"index.js","types":"./index.d.ts","gitHead":"a74e37749528dde93dcd7682ecee9aa4e2f25b61","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.0_1712732331846_0.0034129576918733306","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.1","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.1","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"62ad3f9b6113488cb86b1a3f617df92c8243c51b","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.1.tgz","fileCount":28,"integrity":"sha512-pb0nr/G6JwBq1VvFLJDZ/OrMkVYpf7hdZSkFUR6bkhqpHP1o5GGwbMX+hHUKhuyQqyv4dN238+weXofV5508Mg==","signatures":[{"sig":"MEUCIAzNqDIvpbK+RuvWrZdhl44gYuQTcLnxTK2kRej55fxGAiEAkOAL4wdlcs85+Cd2u/rIJLdYI1IStqkgyMu1Ogzg8Cs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134542},"main":"index.js","types":"./index.d.ts","gitHead":"a74e37749528dde93dcd7682ecee9aa4e2f25b61","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"9.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"18.18.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.1_1712733189340_0.4141023832159192","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.2","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.2","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"27322aabd996e39cef5de8c6c0c53b1a4cabf1a3","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.2.tgz","fileCount":28,"integrity":"sha512-9oiCbIzzFJzaGsYP2ARcNbT1/bk6Q9J/iEMu9HyXDwH7i+eo8Nyglyapde+ZZpWVRTV86HUDyndSJaI6bqi7RA==","signatures":[{"sig":"MEQCIDQTBjIRNI3v4ZSFIMc862u7Z0MbrG7Bf63i7qi3HtLkAiA1RHX+Y+3x3SPpTxzyFlBEhpotItHXwBHzrxwijAhiTw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":138642},"main":"index.js","types":"./index.d.ts","gitHead":"1dd49aed47dd7d2352b929afd99c39d1888ecfe9","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"10.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"22.3.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.2_1721886776220_0.3126710390513969","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.3","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.3","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"7143a943650f22636c3f402a53a9548f2e54289c","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.3.tgz","fileCount":28,"integrity":"sha512-HrREskat/9jpABQjjOuPv9Ncky3dsHfIjmLA5CtIvw8gKSm69J4s8RqkGvT7dyrgS3C0HiJYXTO9zu8XTUVb1g==","signatures":[{"sig":"MEUCIE0P6Q4Pmdw+rG7vecPayHtOlkH82hZ9XxRu/0VMQRWZAiEA8pxTPo+0uht7Ha9An2rTrfnb0y5NENwja999E7Um3Zs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":138796},"main":"index.js","types":"./index.d.ts","gitHead":"2d7d200ecc14e4c8d23a3e41dc5436bb88d8b4b8","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"10.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"22.3.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.3_1721888253597_0.11559323853255066","host":"s3://npm-registry-packages"}},"1.1.4":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.4","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.4","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"0304f34a6bc2d7527150c4fa1c654991c82214ce","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.4.tgz","fileCount":28,"integrity":"sha512-7NbfvN8z5rYJZETZwnF3fmn3lMWxYCBENyY/UckMXkiQ5HeqFUrdWr3JQ1wwx2sbGMrhui+a1ufEo4sXz+i9fw==","signatures":[{"sig":"MEQCIFUJAaI1GHk9KvZDe+MUqRRuEVhrPx135bCpcYp688VkAiBRjkP6d4fhYrib4z52EGoyCWXTZuFYuUauQPX0ihpqng==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":139459},"main":"index.js","types":"./index.d.ts","gitHead":"0011d40b91f77d51f39ac93c44750e5d45cc0d3b","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"10.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"22.3.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2","@nestjs/core":"^10.2.7","@nestjs/common":"^10.2.7","@nestjs/terminus":"^10.1.1"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.4_1721889525764_0.9758072210232318","host":"s3://npm-registry-packages"}},"1.1.5":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.5","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.5","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"f063dc0fc8a7905aaf19d8820e6f536cf3c97ca0","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.5.tgz","fileCount":28,"integrity":"sha512-QEZQRVspRdFE5vipfixKdV/TQt258/Z58Q+ofk2PuFL5+YpRQb1G8XTEH5F8ht+pDseniw2z9/oxEfE7/tbmnQ==","signatures":[{"sig":"MEUCIQC9TiwJOVGNsgu1JZWPmAeI38QE1dRTAGg2b4FmKF8TfQIgV6rynEchnyAFOOWPEVS8ef76zQMpX4OZ6WmAOI5vH1g=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135418},"main":"index.js","types":"./index.d.ts","gitHead":"49c456da4294c2a254bb89904e709a20c24a772c","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"10.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"22.3.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@nestjs/terminus":">=10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.5_1740453800857_0.14397269255328293","host":"s3://npm-registry-packages-npm-production"}},"1.1.6":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.6","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.6","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"2a9ada7d0d363acad18f73fb19fbfb75fd4a8525","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.6.tgz","fileCount":28,"integrity":"sha512-IFLajGpEP/gojhUC0Bs0tqDeizkGVt2oqGvWbZS5oU6/Yl2B6bnbBviHyyaTeydtNm98kjRvS31EccnQe+/wiQ==","signatures":[{"sig":"MEUCIQDJM0cg/LTz5NEQhVn+guTa4LBfm5OugSBU9bSGGjkZfQIgTcHi1FkT/BJo6gDWDiKuTeHmdkSjNrwtfpvAtwEEMzA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":134884},"main":"index.js","types":"./index.d.ts","gitHead":"f1ac0e1439415c066aadab615294c9442f74842f","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"10.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"22.3.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@nestjs/terminus":">=10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.6_1748499589877_0.9093818034365151","host":"s3://npm-registry-packages-npm-production"}},"1.1.7":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.7","keywords":["nestjs","redis","redis lock","distributed lock"],"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","_id":"@damon35868/nestjs-simple-redis-lock@1.1.7","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"dist":{"shasum":"75dd34ef8d39c024105d497ad86cba2dbec9c0ea","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.7.tgz","fileCount":28,"integrity":"sha512-2vtaBhCEzauyBDORGGPXd+W7PRuP/5XrwDXCYpJKK+Zj7GD1OgkieMeMjg8bUVXv4n0yxNqKEALwZDLT6mImFw==","signatures":[{"sig":"MEQCIBxbu94OxMpHOx0BUNlJ+6eG6ijSSubPSudGkhkr2r71AiAi3lKQBpzJKP9tUbo4cZWHpjg1e7zdEpgXSSx5318Wwg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":135418},"main":"index.js","types":"./index.d.ts","gitHead":"8392185dd03234784da7653df78c5e7f0bc5bb45","scripts":{"test":"echo \"Error: no test specified\" && exit 1","build":"rm -rf dist && tsc -p tsconfig.json"},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"repository":{"url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git","type":"git"},"_npmVersion":"10.8.1","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","directories":{},"_nodeVersion":"22.3.0","dependencies":{"rxjs":"^7.8.1","debug":"^4.3.4","ioredis":"^5.3.2"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.2.2","@types/node":"^20.8.2","@types/debug":"^4.1.9"},"peerDependencies":{"@nestjs/core":">=10.0.0","@nestjs/common":">=10.0.0","@nestjs/terminus":">=10.0.0"},"_npmOperationalInternal":{"tmp":"tmp/nestjs-simple-redis-lock_1.1.7_1748504641567_0.17387691024554486","host":"s3://npm-registry-packages-npm-production"}},"1.1.8":{"name":"@damon35868/nestjs-simple-redis-lock","version":"1.1.8","description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","main":"index.js","scripts":{"build":"rm -rf dist && tsc -p tsconfig.json","test":"echo \"Error: no test specified\" && exit 1"},"keywords":["nestjs","redis","redis lock","distributed lock"],"repository":{"type":"git","url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git"},"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","dependencies":{"debug":"^4.3.4","ioredis":"^5.3.2","rxjs":"^7.8.1"},"devDependencies":{"@types/debug":"^4.1.9","@types/node":"^20.8.2","typescript":"^5.2.2"},"peerDependencies":{"@nestjs/common":">=10.0.0","@nestjs/core":">=10.0.0","@nestjs/terminus":">=10.0.0"},"_id":"@damon35868/nestjs-simple-redis-lock@1.1.8","gitHead":"df13ee97d0e4917c9210a9c497679a7a4ad5c431","types":"./index.d.ts","bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"_nodeVersion":"22.3.0","_npmVersion":"10.8.1","dist":{"integrity":"sha512-ELeyyihQzkr4NB2LA28RsjRMluplaKJSjbSE9lsZmn/qMwqc7ZcwSTRB5rH0ObvJyz7ldwaRwMrtPAwBGZi/QQ==","shasum":"43899cfd46e0858258d393e63eb840fb1f30b621","tarball":"https://registry.npmjs.org/@damon35868/nestjs-simple-redis-lock/-/nestjs-simple-redis-lock-1.1.8.tgz","fileCount":28,"unpackedSize":135799,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFla7377NEtJLyemYNtOl87Ga2AKzDPxUO66w/0moyZgAiEAtSuiYpWryHG3Q13OJJP4PFygHY0Pgzn/vzje4WnDPfE="}]},"_npmUser":{"name":"damonzhang","email":"damonzhang35868@gmail.com"},"directories":{},"maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/nestjs-simple-redis-lock_1.1.8_1748596887095_0.9651991369345152"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-10T04:15:20.813Z","modified":"2025-05-30T09:21:27.457Z","10.0.0":"2024-04-10T04:15:21.161Z","0.0.1":"2024-04-10T04:17:51.368Z","1.0.0":"2024-04-10T04:25:44.175Z","1.0.1":"2024-04-10T04:28:06.893Z","1.0.2":"2024-04-10T04:38:29.337Z","1.0.3":"2024-04-10T04:40:27.359Z","1.0.4":"2024-04-10T05:22:04.033Z","1.0.5":"2024-04-10T05:39:19.596Z","1.0.6":"2024-04-10T05:56:27.346Z","1.0.7":"2024-04-10T06:15:27.942Z","1.0.8":"2024-04-10T06:20:23.983Z","1.0.9":"2024-04-10T06:32:42.168Z","1.1.0":"2024-04-10T06:58:52.044Z","1.1.1":"2024-04-10T07:13:09.524Z","1.1.2":"2024-07-25T05:52:56.400Z","1.1.3":"2024-07-25T06:17:33.830Z","1.1.4":"2024-07-25T06:38:45.987Z","1.1.5":"2025-02-25T03:23:21.056Z","1.1.6":"2025-05-29T06:19:50.094Z","1.1.7":"2025-05-29T07:44:01.731Z","1.1.8":"2025-05-30T09:21:27.273Z"},"bugs":{"url":"https://github.com/damon35868/nestjs-simple-redis-lock/issues"},"author":{"name":"D.M","email":"damonzhang35868@gamil.com"},"license":"MIT","homepage":"https://github.com/damon35868/nestjs-simple-redis-lock/blob/master/README.md","keywords":["nestjs","redis","redis lock","distributed lock"],"repository":{"type":"git","url":"git+ssh://git@github.com/damon35868/nestjs-simple-redis-lock.git"},"description":"Distributed lock with single redis instance, simple and easy to use for Nestjs","maintainers":[{"name":"damonzhang","email":"damonzhang35868@gmail.com"}],"readme":"# @damon35868/nestjs-simple-redis-lock\n\nDistributed lock with single redis instance, simple and easy to use for [Nestjs](https://github.com/nestjs/nest)\n\n## Installation\n\n```\nnpm install @damon35868/nestjs-simple-redis-lock\n```\n\n## Usage\n\nYou must install [nestjs-redis](https://github.com/liaoliaots/nestjs-redis), and use in Nest. This package use it to access redis:\n\n```JavaScript\n// app.ts\nimport { RedisLockModule } from '@damon35868/nestjs-simple-redis-lock';\n\n@Module({\n  imports: [\n    ...\n    RedisModule.forRootAsync({ // import RedisModule before RedisLockModule\n      imports: [ConfigModule],\n      useFactory: (config: ConfigService) => ({\n        host: config.get('REDIS_HOST'),\n        port: config.get('REDIS_PORT'),\n        db: parseInt(config.get('REDIS_DB'), 10),\n        password: config.get('REDIS_PASSWORD'),\n        keyPrefix: config.get('REDIS_KEY_PREFIX'),\n      }),\n      inject: [ConfigService],\n    }),\n   RedisLockModule.registerAsync({\n     // isGlobal: true,\n      useFactory: async (redisManager: RedisManager) => {\n        return { prefix: ':lock:', client: redisManager.getClient() }\n      },\n      inject: [RedisManager]\n    }), // import RedisLockModule, use default configuration\n  ]\n})\nexport class AppModule {}\n```\n\n### New Feature\n\n#### default single is true\n\n```TypeScript\nimport { RedisLockService } from '@damon35868/nestjs-simple-redis-lock';\n\nexport class FooService {\n  constructor(\n    protected readonly lockService: RedisLockService, // inject RedisLockService\n  ) {}\n\n  async test1() {\n    try {\n      /**\n       * Get a lock by name\n       * Automatically unlock after 1min\n       * Try again after 100ms\n       * The max times to retry is 36000, about 1h\n       */\n\n      // default single is true\n      await this.lockService.lock('test1', { single:true });\n      // Do somethings\n    } catch(e:any){\n      // do someting on lock fail\n      throw new Error(e.message || `RedisLockService: locking for ***, please try later`);\n    } inally { // use 'finally' to ensure unlocking\n      this.lockService.unlock('test1'); // unlock\n      // Or: await this.lockService.unlock('test1'); wait for the unlocking\n    }\n  }\n\n  async test2() {\n    /**\n     * Automatically unlock after 2min\n     * Try again after 50ms if failed\n     * The max times to retry is 100\n     */\n    await this.lockService.lock('test1', { expire: 2 * 60 * 1000, retryInterval:50, maxRetryTimes: 100 });\n    // Do somethings\n    await this.lockService.setTTL('test1', 60000); // Renewal the lock when the program is very time consuming, avoiding automatically unlock\n    this.lockService.unlock('test1');\n  }\n}\n```\n\n### 1. Simple example\n\n```TypeScript\nimport { RedisLockService } from '@damon35868/nestjs-simple-redis-lock';\n\nexport class FooService {\n  constructor(\n    protected readonly lockService: RedisLockService, // inject RedisLockService\n  ) {}\n\n  async test1() {\n    try {\n      /**\n       * Get a lock by name\n       * Automatically unlock after 1min\n       * Try again after 100ms\n       * The max times to retry is 36000, about 1h\n       */\n      await this.lockService.lock('test1');\n      // Do somethings\n    } finally { // use 'finally' to ensure unlocking\n      this.lockService.unlock('test1'); // unlock\n      // Or: await this.lockService.unlock('test1'); wait for the unlocking\n    }\n  }\n\n  async test2() {\n    /**\n     * Automatically unlock after 2min\n     * Try again after 50ms if failed\n     * The max times to retry is 100\n     */\n    await this.lockService.lock('test1', { expire: 2 * 60 * 1000, retryInterval:50, maxRetryTimes: 100 });\n    // Do somethings\n    await this.lockService.setTTL('test1', 60000); // Renewal the lock when the program is very time consuming, avoiding automatically unlock\n    this.lockService.unlock('test1');\n  }\n}\n```\n\n### 2. Example by using decorator\n\nUsing `@damon35868/nestjs-simple-redis-lock` by decorator, the locking and unlocking will be very easy.\nSimple example with constant lock name:\n\n```TypeScript\nimport { RedisLockService, RedisLock } from '@damon35868/nestjs-simple-redis-lock';\n\nexport class FooService {\n  constructor(\n    protected readonly lockService: RedisLockService, // inject RedisLockService\n  ) {}\n\n  /**\n   * Wrap the method, starting with getting a lock, ending with unlocking\n   * The first parameter is lock name\n   * By default, automatically unlock after 1min.\n   * By default, try again after 100ms if failed\n   * By default, the max times to retry is 36000, about 1h\n   */\n  @RedisLock('test2')\n  async test1() {\n    // Do somethings\n    return 'some values';\n  }\n\n  /**\n   * Automatically unlock after 2min\n   * Try again after 50ms if failed\n   * The max times to retry is 100\n   */\n  @RedisLock('test2', { expire: 2 * 60 * 1000, retryInterval:50, maxRetryTimes: 100 })\n  async test2() {\n    // Do somethings\n    return 'some values';\n  }\n}\n```\n\nThe first parameter of this decorator is a powerful function. It can use to determinate lock name by many ways.\nSimple example with dynamic lock name:\n\n```TypeScript\nimport { RedisLockService, RedisLock } from '@damon35868/nestjs-simple-redis-lock';\n\nexport class FooService {\n  lockName = 'test3';\n\n  constructor(\n    protected readonly lockService: RedisLockService, // inject RedisLockService\n  ) {}\n\n  /**\n   * Determinate lock name from 'this'\n   * The first parameter is 'this', so you can access any member in 'this' for create a dynamic lock name.\n   */\n  @RedisLock((target) => target.lockName)\n  async test1() {\n    // Do somethings\n    return 'some values';\n  }\n\n  /**\n   * Determinate lock name from the parameters of the method\n   * The original parameters also pass to the function, so you can determinate the lock name by the parameters.\n   */\n  @RedisLock((target, param1, param2) => param1 + param2)\n  async test2(param1, param2) {\n    // Do somethings\n    return 'some values';\n  }\n}\n```\n\n## Configuration\n\n- Register:\\*\n\n```TypeScript\n@Module({\n  imports: [\n    RedisLockModule.register({\n      clientName: 'client_name', // the Redis client name in nestjs-redis, to use specific Redis client. Default to use default client\n      prefix: 'my_lock:', // By default, the prefix is 'lock:'\n    })\n  ]\n})\n```\n\n_Async register:_\n\n```TypeScript\n@Module({\n  imports: [\n    RedisLockModule.registerAsync({\n          imports: [ConfigModule],\n          useFactory: async (config: ConfigService) => ({\n            clientName: config.get('REDIS_LOCK_CLIENT_NAME')\n          }),\n          inject: [ConfigService],\n        }),\n  ]\n})\n```\n\n## Debug\n\nAdd a environment variable `DEBUG=nestjs-simple-redis-lock` when start application to check log:\n\n```json\n// package.json\n{\n  \"scripts\": {\n    \"start:dev\": \"DEBUG=nestjs-simple-redis-lock tsc-watch -p tsconfig.build.json --onSuccess \\\"node dist/main.js\\\"\"\n  }\n}\n```\n","readmeFilename":"README.md"}