Skip to content

Commit 33258dd

Browse files
committed
Simplified code.
1 parent 28cde56 commit 33258dd

File tree

9 files changed

+151
-1877
lines changed

9 files changed

+151
-1877
lines changed

src/examples/debug.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import * as L from "@litert/core";
2121

2222
await cli.connect();
2323
await cli.auth("hello");
24+
await cli.flushAll();
2425

2526
console.log(await cli.ping(""));
2627
console.log(await cli.set("a", "123"));
@@ -72,6 +73,8 @@ import * as L from "@litert/core";
7273

7374
await pipeline.incr("a", 123);
7475

76+
await pipeline.command("HGETALL", ["h"]);
77+
7578
console.log(JSON.stringify(await pipeline.exec(), null, 2));
7679

7780
// Pipeline Mode
@@ -93,6 +96,8 @@ import * as L from "@litert/core";
9396

9497
await pipeline.incr("a", 123);
9598

99+
await pipeline.command("HGETALL", ["h"]);
100+
96101
console.log(JSON.stringify(await pipeline.exec(), null, 2));
97102

98103
await pipeline.shutdown();

src/lib/BaseClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ extends ProtocolClient {
3838

3939
public async auth(k: string): Promise<void> {
4040

41-
await this.command("AUTH", [k]);
41+
await this._command("AUTH", [k]);
4242

4343
this._password = k;
4444
}

0 commit comments

Comments
 (0)