alepha@docs:~/docs/packages/alepha/lock$
cat core.md
1 min read
Last commit:

#Alepha - Lock

#Installation

Part of the alepha package. Import from alepha/lock.

npm install alepha

#Overview

Resource locking for distributed systems.

Features:

  • Distributed locks with timeout
  • Time-based lock expiration
  • Automatic release on scope exit
  • Distributed coordination via Redis
  • Providers: Memory (dev), Redis (production)

#API Reference

#Primitives

  • $lock — Distributed lock middleware for use arrays in $action, $job, $page, $pipeline.

#Providers