Skip to content

Commit a0de796

Browse files
committed
buffers, buffers everywhere...
1 parent 2733e22 commit a0de796

File tree

237 files changed

+2322
-1951
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

237 files changed

+2322
-1951
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,16 @@ await client.hGetAll('key'); // { field1: 'value1', field2: 'value2' }
7575
await client.hVals('key'); // ['value1', 'value2']
7676
```
7777

78+
`Buffer`s are supported as well:
79+
80+
```typescript
81+
await client.hSet('key', 'field', Buffer.from('value')); // 'OK'
82+
await client.hGetAll(
83+
commandOptions({ returnBuffers: true }),
84+
'key'
85+
); // { field: <Buffer 76 61 6c 75 65> }
86+
```
87+
7888
### Unsupported Redis Commands
7989

8090
If you want to run commands and/or use arguments that Node Redis doesn't know about (yet!) use `.sendCommand()`:

0 commit comments

Comments
 (0)