@storehouse/redis - v0.1.0
    Preparing search index...

    Function getPoolManager

    • Retrieves a RedisPoolManager instance from the registry.

      Type Parameters

      • M extends RedisPoolManager<
            RedisDefaultModules,
            RedisFunctions,
            RedisScripts,
            3,
            TypeMapping,
        > = RedisPoolManager<
            RedisDefaultModules,
            RedisFunctions,
            RedisScripts,
            3,
            TypeMapping,
        >

        The specific RedisPoolManager type to return, defaults to RedisPoolManager

      Parameters

      • registry: Registry

        The Storehouse registry containing registered managers

      • OptionalmanagerName: string

        Optional name of the manager to retrieve. If omitted, retrieves the default manager

      Returns M

      The requested RedisPoolManager instance

      If the manager is not found in the registry

      If the manager exists but is not an instance of RedisPoolManager

      const redisManager = getPoolManager(registry, 'redis-pool-manager');
      await redisManager.connect();