Closed
Description
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
Platform
Linux
Logs
No response