You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Updated examples to use named functions. (#1687)
* Updated examples to user named functions. * Update README.md Co-authored-by: Leibale Eidelman <leibale1998@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
|
||||
import { createClient } from 'redis';
|
||||
|
||||
const connectWithACLUser = async () => {
|
||||
async function connectWithACLUser() {
|
||||
const client = createClient({
|
||||
url: 'redis://testuser:testpassword@127.0.0.1:6379'
|
||||
});
|
||||
@@ -27,6 +27,4 @@ const connectWithACLUser = async () => {
|
||||
await client.quit();
|
||||
}
|
||||
|
||||
|
||||
connectWithACLUser();
|
||||
|
||||
|
Reference in New Issue
Block a user