Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
kane50613 committed Mar 4, 2024
1 parent a32a510 commit fb29357
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const value = await redis("GET", "foo");
console.log(value); // bar
```

### Raw buffer
### Raw Uint8Array

This is useful if you want to store binary data. For example, you can store protobuf messages in Redis.

Expand All @@ -47,7 +47,9 @@ await redis.raw("SET", "foo", "bar");

const value = await redis.raw("GET", "foo");

console.log(value); // <Buffer 62 61 72>
const decoder = new TextDecoder();

console.log(decoder.decode(value)); // bar
```

### Node.js, Next.js local development
Expand Down

0 comments on commit fb29357

Please sign in to comment.