1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-16 08:41:57 +03:00

add isOpen boolean getter on client, add maxLength option to command queue, add test for client.multi

This commit is contained in:
leibale
2021-05-13 18:42:59 -04:00
parent b472efc116
commit 966c94a078
5 changed files with 66 additions and 21 deletions

View File

@@ -78,6 +78,10 @@ export default class RedisSocket extends EventEmitter {
#isOpen = false;
get isOpen(): boolean {
return this.#isOpen;
}
get chunkRecommendedSize(): number {
if (!this.#socket) return 0;