1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

some docs

Co-authored-by: Guy Royse <guy@guyroyse.com>
This commit is contained in:
Leibale
2023-06-07 11:32:15 -04:00
parent 8ef0e47e57
commit eb47bb03fc
3 changed files with 89 additions and 5 deletions

37
docs/command-options.md Normal file
View File

@@ -0,0 +1,37 @@
# 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