• Preparing search index...
  • The search index is not available
@daiso-tech/core - v0.56.0
  • @daiso-tech/core
  • SharedLock
  • withSharedLockPrefix

Function withSharedLockPrefix

  • withSharedLockPrefix(prefix: string): PluginFn<ISharedLockAdapter>
  • Creates a plugin that prefixes all keys passed to a shared-lock adapter.

    Every method that accepts a lock key will have the given prefix prepended before the call is forwarded to the underlying adapter. This applies to both writer and reader operations, including acquire, release, refresh, and force-release methods.

    Parameters

    • prefix: string

      The string to prepend to every shared-lock key.

    Returns PluginFn<ISharedLockAdapter>

    A middleware plugin that wraps an ISharedLockAdapter.

    IMPORT_PATH: "@daiso-tech/core/shared-lock/plugins"

    • Defined in src/shared-lock/implementations/plugins/with-shared-lock-prefix/with-shared-lock-prefix.ts:22

Settings

Member Visibility
@daiso-tech/core - v0.56.0
  • Loading...

Generated using TypeDoc