Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

This folder contains example scripts showing how to use Node Redis in different scenarios.

|File Name |Description |
|------------------------|------------------------------------|
|`connect-as-acl-user.js`|Connect to Redis 6 using an ACL user|
| File Name | Description |
|--------------------------|--------------------------------------|
| `connect-as-acl-user.js` | Connect to Redis 6 using an ACL user |

## Contributing

Expand Down Expand Up @@ -45,7 +45,7 @@ Here's a starter template for adding a new example, imagine this is stored in `d

import { createClient } from 'redis';

const doSomething = async () => {
async function doSomething() {
const client = createClient();

await client.connect();
Expand All @@ -55,6 +55,5 @@ const doSomething = async () => {
await client.quit();
}


doSomething();
```
```
4 changes: 1 addition & 3 deletions examples/connect-as-acl-user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import { createClient } from 'redis';

const connectWithACLUser = async () => {
async function connectWithACLUser() {
const client = createClient({
url: 'redis://testuser:[email protected]:6379'
});
Expand All @@ -27,6 +27,4 @@ const connectWithACLUser = async () => {
await client.quit();
}


connectWithACLUser();