Skip to content

[Typescript] RedisFlushModes aren't exported and can't be used #2411

Closed
@oleksii-donoha

Description

@oleksii-donoha

Description

When writing code, which flushes DB/all:

await client.flushDb()

There might be a need to flush asynchronously: https://redis.io/commands/flushdb/
client.flushDB() expects optional arg mode?: RedisFlushModes | undefined.
This enum is implemented here: https://github.com/redis/node-redis/blob/master/packages/client/lib/commands/FLUSHALL.ts
But the RedisFlushModes is not exported by redis module and cannot be referenced in the code.
Am I missing something?

Node.js Version

v16.18.1

Redis Server Version

unrelated to server

Node Redis Version

[email protected]

Platform

Linux

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions