Skip to content

Commit 7240fda

Browse files
committed
feat!: remove sendOnce and sendOnceRaw
1 parent 50d2421 commit 7240fda

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

src/client.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -160,34 +160,6 @@ export class RedisClient {
160160
return this.#connection;
161161
}
162162

163-
public async sendOnce<TResult>(
164-
command: RedisCommand<TResult>,
165-
): Promise<TResult>;
166-
167-
public async sendOnce<const TResults extends any[]>(commands: {
168-
[I in keyof TResults]: RedisCommand<TResults[I]>;
169-
}): Promise<TResults>;
170-
171-
public async sendOnce(command: RedisCommand | RedisCommand[]) {
172-
try {
173-
return await this.send(command);
174-
} finally {
175-
await this.close();
176-
}
177-
}
178-
179-
public async sendOnceRaw(command: RedisCommand): Promise<RedisResponse>;
180-
181-
public async sendOnceRaw(commands: RedisCommand[]): Promise<RedisResponse[]>;
182-
183-
public async sendOnceRaw(command: RedisCommand | RedisCommand[]) {
184-
try {
185-
return await this.sendRaw(command);
186-
} finally {
187-
await this.close();
188-
}
189-
}
190-
191163
public async send<TResult>(command: RedisCommand<TResult>): Promise<TResult>;
192164

193165
public async send<const TResults extends any[]>(commands: {

0 commit comments

Comments
 (0)