The production-ready Medusa DTC Starter is outRead the announcement
L

Locking postgres

Postgres Advisory Locks for Medusa

Included in @medusajs/medusa, no separate install needed
Category
Built by
Version
2.22.4
Last updated
7 hours ago
Monthly downloads
Loading downloads

Medusa logo

@medusajs/locking-postgres

Documentation | Website

Building blocks for digital commerce

Medusa is released under the MIT license. PRs welcome! Discord Chat Follow @medusajs

PostgreSQL Locking Module Provider for Medusa: implements the Locking Module's locks with PostgreSQL advisory locks, using the application's existing database. Use it in production when you don't have Redis; the Redis provider is recommended when available. It ships with and is registered through the path.

At a glance

Package
TypeModule Provider (Locking Module)
Provider ID
Registered by defaultNo (the Locking Module uses an in-memory provider by default)
Import from

Installation

No installation needed. The provider is a dependency of .

Usage

Register the provider in the Locking Module's array in , then run to create the provider's table.

Configuration

The provider has no options.

Resources