Skip to content

Commit

Permalink
Merge pull request #220 from xmtp/ar/readme-updates-redis
Browse files Browse the repository at this point in the history
chore: updated readme
  • Loading branch information
fabriguespe authored May 9, 2024
2 parents 4431467 + c0fd9fb commit 1085515
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/redis-persistence/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ This tutorial demonstrates how to use the `RedisPersistence` class from the `@xm
First, install the package in your project:

```bash
yarn add @xmtp/fs-persistence
yarn add @xmtp/redis-persistence
```

### Step 1: Create a Redis Client

Connect to your Redis instance:

```javascript
const { createClient } = require("redis")
const { createClient } = require("@redis/client")
const redis = createClient({
url: "redis://localhost:6379",
})
client.connect()
redis.connect()
```

### Step 2: Implement RedisPersistence
Expand Down

0 comments on commit 1085515

Please sign in to comment.