Scan your whole stack
Are you using ac-redislock?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v6.0.19
ac-redislock was last scanned on 29 Nov 2026 at version 6.0.19. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 6.0.19 LATEST | 29 Nov 2026 | No rules fired |
| 6.0.18 | 16 Oct 2026 | No rules fired |
| 6.0.17 | 23 Aug 2026 | No rules fired |
Findings for v6.0.19. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 6.0.19; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
This tool can be used to lock operations (e.g. make sure workers will fetch a job only once)
Instead of just returning 423, a locked resource will now throw an error with a clear error message "resource_locked" and a code 423.
Version 4 no longer supports callbacks! Please use async/await instead.
RedisLock will now be only initialized once - if parameters redis, logger, logLevel, suppressMismatch are already set (by first init call) they are re-used and no longer overwritten.
If you want the old behaviour, init again with parameter reInit=true.
Requires an existing Redis connection.
Init function requires a valid redis instance.
Those options will init ac-redislock once. Calling it again will not have any effect as long as you do not use reInit=true.
await redisLock.lockKey(params)
LockKey has the following parameters
Lock key throws an error 423 (if lock is already active) or otherwise returns the lock value, which can be used in releaseLock function.
await redisLock.releaseLock(params)
ReleaseKey has the following parameters
getLock has following parameters
const redisLock = require('ac-redislock')
// create a Redis instance (using io-redis)
const app.redisInstance = new Redis(options)
await redisLock.init({
redis: app.redisInstance
})
const params = {
redisKey: 'someMeaningfulKey',
}
try {
// value for this lock -> set as params.value for releaseLock
const value = await redisLock.lockKey(params)
}
catch(err) {
// err can be 423 -> key is locked
}
// retrieve lock value later if needed before releasing lock
const value = await redisLock.getLock(params)
console.log('lock value:', value)
// redisKey is deleted and lock released
await redisLock.releaseKey(params)
If you use this package on multiple instances and want to make sure only of those instances processes a job we recommend to set suppressMismatch in order to avoid error messages if a process tries to release a key even though it did not lock it.
MIT License Copyright © 2009-present, AdmiralCloud, AdmiralCloud AG, Mark Poepping
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.