Atomic extension with TTL feedback and race condition protection
Redis key
Expected value
Minimum TTL required for extension (race condition protection)
New TTL to set in milliseconds
Promise resolving to atomic extension result with TTL feedback
Atomically acquire multiple locks in a single operation All-or-nothing semantics: either all locks are acquired or none
Array of Redis keys to lock
Array of values (one per key, same length as keys)
Time to live in milliseconds for all locks
Promise resolving to batch acquisition result
Delete key
Key to delete
Promise resolving to number of deleted keys
Delete key only if value matches (atomic operation)
Redis key
Expected value
Promise resolving to true if deleted, false otherwise
Disconnect from Redis
Promise that resolves when disconnected
Extend TTL of a key only if value matches (atomic operation)
Redis key
Expected value
New TTL in milliseconds
Promise resolving to true if extended, false otherwise
Get value by key
Redis key
Promise resolving to value or null if not found
Atomically inspect a lock's current state Returns the lock value (owner) and remaining TTL in a single operation
Redis key to inspect
Promise resolving to LockInspection if key exists, null otherwise
Check if adapter is connected
Connection status
Ping Redis server
Promise resolving to 'PONG'
Set key with value if not exists, with TTL in milliseconds
Redis key
Value to set
Time to live in milliseconds
Promise resolving to 'OK' on success, null if key exists
Universal Redis adapter interface Abstracts differences between node-redis and ioredis