zibri
    Preparing search index...

    Class AlsUtilitiesAbstract

    Encapsulates functionality around async local storage.

    Index

    Constructors

    Methods

    • Resolves the currently active cache context from the async local storage.

      Returns CacheContext[] | undefined

      The currently active cache context.

      When the async local storage store has not been initialized yet.

    • Runs the given function with the cache context saved in async local storage.

      Type Parameters

      • T

      Parameters

      • context: CacheContext

        The cache context.

      • fn: () => T

        The function to run.

      Returns T

      The result of the function.