You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
37
docs/command-options.md
Normal file
37
docs/command-options.md
Normal 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
|
Reference in New Issue
Block a user