Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AntPrimaryQueryManager<TEntity, TQueryResult>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

  • Creates primary query manager.

    Parameters

    • query: TQuery<TQueryResult>

      Query to obtain ids.

    • primaryEntityManager: PrimaryEntityManager<TEntity>

      Primary entity manager.

    • redis: RedisMiddleware

      Redis connection to manage queries.

    • reverseHashKey: string

      Key of the reverse structure to obtain a map of entities to queries.

    • queryKeyGen: function

      Query key generator.

        • (params: any): string
        • Parameters

          • params: any

          Returns string

    • Optional entityKeyGen: function
        • (entity: TEntity): string
        • Parameters

          • entity: TEntity

          Returns string

    • Optional mQuery: TMQuery<TQueryResult>

      Multiple query.

    Returns AntPrimaryQueryManager

Properties

Protected _entityKeyGen

_entityKeyGen: function

Entity key generator.

Type declaration

    • (entity: TEntity): string
    • Parameters

      • entity: TEntity

      Returns string

Protected _luaKeyGeneratorFromId

_luaKeyGeneratorFromId: function

Lua expression generator.

Type declaration

    • (alias: string): string
    • Parameters

      • alias: string

      Returns string

Protected _mquery

_mquery: TMQuery<TQueryResult>

Multiple query

Protected _primaryEntityManager

_primaryEntityManager: PrimaryEntityManager<TEntity>

Primary entity manager.

Protected _query

_query: TQuery<TQueryResult>

Query to obtain ids.

Protected _queryKeyGen

_queryKeyGen: function

Query key generator.

Type declaration

    • (params: any): string
    • Parameters

      • params: any

      Returns string

Protected _redis

Redis connection to manage queries.

Protected _reverseHashKey

_reverseHashKey: string

Key of the reverse structure to obtain a map of entities to queries.

Accessors

entityKeyGen

  • get entityKeyGen(): function

isMultiple

  • get isMultiple(): boolean

queryKeyGen

  • get queryKeyGen(): function

reverseHashKey

  • get reverseHashKey(): string

Methods

Abstract get

Abstract mGet

Generated using TypeDoc