Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AntPrimaryModelManager<TEntity, TSecondaryManager>

Type parameters

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected _luaDeleteCachedQuery

_luaDeleteCachedQuery: DeleteEntitiesCachedScriptSet

Cached script for deleting an entity.

Protected _luaKeyGeneratorFromId

_luaKeyGeneratorFromId: function

Lua expression generator.

Type declaration

    • (alias: string): string
    • Parameters

      • alias: string

      Returns string

Protected _luaMDeleteCachedQuery

_luaMDeleteCachedQuery: DeleteEntitiesCachedScriptSet

Cached script for deleting multiple entities.

Protected _luaMUpdateCachedQuerySet

_luaMUpdateCachedQuerySet: UpdateEntitiesCachedScriptSet

Cached script set for updating multiple entities.

Protected _luaUpdateCachedQuerySet

_luaUpdateCachedQuerySet: UpdateEntitiesCachedScriptSet

Cached script set for updating an entity.

Protected _model

_model: Model<TEntity>

Model managed.

Protected _negativeEntityCache

_negativeEntityCache: boolean

True to use negative entity cache.

Protected _queryManagers

_queryManagers: Array<PrimaryQueryManager<TEntity>>

Query managers.

Protected _redis

Redis connection.

Protected _successor

_successor: TSecondaryManager

Secondary model manager of the model.

Accessors

model

  • get model(): Model<TEntity>

Methods

Protected _deleteEntitiesUsingNegativeCache

Protected _deleteEntityUsingNegativeCache

Protected _evaluateUseNegativeCache

Protected _getKey

  • _getKey(id: number | string): string

Protected _innerGetByDistinctIdsNotMapped

Protected _innerGetById

Protected _innerGetByIds

Protected _innerGetKeyGenerationLuaScriptGenerator

  • _innerGetKeyGenerationLuaScriptGenerator(keyGenParams: KeyGenParams): function

Protected _luaGetMultipleDeleteUsingNegativeCache

Protected _luaGetMultipleSetEx

  • _luaGetMultipleSetEx(): string

Protected _luaGetMultipleSetNx

  • _luaGetMultipleSetNx(): string

Protected _luaGetMultipleSetNxEx

  • _luaGetMultipleSetNxEx(): string

Protected _luaGetUpdateStatement

  • _luaGetUpdateStatement(options: PersistencyUpdateOptions, keyExpression: string, entityExpression: string, ttlExpression?: string): string

addQuery

delete

get

getLuaKeyGeneratorFromId

  • getLuaKeyGeneratorFromId(): function

getQueries

mDelete

mGet

mUpdate

update

Generated using TypeDoc