Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RedisQueryResultCache

Caches query result into Redis database.

Hierarchy

  • RedisQueryResultCache

Implements

Index

Constructors

constructor

Properties

Protected client

client: any

Connected redis client.

Protected clientType

clientType: "redis" | "ioredis" | "ioredis/cluster"

Type of the Redis Client (redis or ioredis).

Protected connection

connection: Connection

Protected redis

redis: any

Redis module instance loaded dynamically.

Methods

clear

connect

  • connect(): Promise<void>

Protected deleteKey

  • deleteKey(key: string): Promise<void>

disconnect

  • disconnect(): Promise<void>

getFromCache

isExpired

Protected loadRedis

  • loadRedis(): any

remove

  • remove(identifiers: string[], queryRunner?: QueryRunner): Promise<void>

storeInCache

synchronize

Generated using TypeDoc