1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/docs/command-options.md
Leibale eb47bb03fc some docs
Co-authored-by: Guy Royse <guy@guyroyse.com>
2023-06-07 11:32:15 -04:00

38 lines
568 B
Markdown

# Command Options
> :warning: The command options API in v5 has breaking changes from the previous version. For more details, refer to the [v4-to-v5 guide](./v4-to-v5.md#command-options).
TODO: "proxy client" concept
## Type Mapping
TODO [RESP](./RESP.md)
`withTypeMapping`
```javascript
await client.get('key'); // `string | null`
const proxyClient = client.withTypeMapping({
[TYPES.BLOB_STRING]: Buffer
});
await proxyClient.get('key'); // `Buffer | null`
```
## Abort Signal
TODO
`withAbortSignal`
## ASAP
TODO
`asap`
## `withCommandOptions`
TODO