Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RedisDataSource

Service type for Redis data source.

Hierarchy

  • RedisDataSource

Index

Properties

Static Readonly TYPE

TYPE: string

Static Readonly UNKNOWN

UNKNOWN: string

Unknown type.

Methods

Static createRecord

  • createRecord(name: string, location: {}, metadata: {}): Record
  • Convenient method to create a record for a Redis data source.

    Parameters

    • name: string
    • location: {}
      • [key: string]: any
    • metadata: {}
      • [key: string]: any

    Returns Record

Static getRedisClient

  • getRedisClient(discovery: ServiceDiscovery, filter: {}): PromiseLike<Redis>
  • getRedisClient(discovery: ServiceDiscovery, filter: {}, resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>): void
  • getRedisClient(discovery: ServiceDiscovery, filter: (arg: Record) => boolean): PromiseLike<Redis>
  • getRedisClient(discovery: ServiceDiscovery, filter: (arg: Record) => boolean, resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>): void
  • getRedisClient(discovery: ServiceDiscovery, filter: {}, consumerConfiguration: {}): PromiseLike<Redis>
  • getRedisClient(discovery: ServiceDiscovery, filter: {}, consumerConfiguration: {}, resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>): void
  • getRedisClient(discovery: ServiceDiscovery, filter: (arg: Record) => boolean, consumerConfiguration: {}): PromiseLike<Redis>
  • getRedisClient(discovery: ServiceDiscovery, filter: (arg: Record) => boolean, consumerConfiguration: {}, resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>): void
  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    Returns PromiseLike<Redis>

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: {}
      • [key: string]: any
    • resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>

    Returns void

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    Returns PromiseLike<Redis>

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: (arg: Record) => boolean
        • Parameters

          Returns boolean

    • resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>

    Returns void

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: {}
      • [key: string]: any
    • consumerConfiguration: {}
      • [key: string]: any

    Returns PromiseLike<Redis>

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: {}
      • [key: string]: any
    • consumerConfiguration: {}
      • [key: string]: any
    • resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>

    Returns void

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    Returns PromiseLike<Redis>

  • Convenient method that looks for a Redis data source and provides the configured {@link Redis}. The async result is marked as failed is there are no matching services, or if the lookup fails.

    Parameters

    • discovery: ServiceDiscovery
    • filter: (arg: Record) => boolean
        • Parameters

          Returns boolean

    • consumerConfiguration: {}
      • [key: string]: any
    • resultHandler: ((res: AsyncResult<Redis>) => void) | Handler<AsyncResult<Redis>>

    Returns void

Generated using TypeDoc