@alepha/lock-redis
Version:
Redis implementation for the distributed locking mechanism.
28 lines (17 loc) • 521 B
Markdown
# Alepha Lock Redis
Redis implementation for the distributed locking mechanism.
## Installation
This package is part of the Alepha framework and can be installed via the all-in-one package:
```bash
npm install alepha
```
## Module
Plugin for Alepha that provides a locking mechanism.
This module can be imported and used as follows:
```typescript
import { Alepha, run } from "alepha";
import { AlephaLockRedis } from "alepha/lock/redis";
const alepha = Alepha.create()
.with(AlephaLockRedis);
run(alepha);
```