Skip to content

Commit

Permalink
update readme for Pipelining
Browse files Browse the repository at this point in the history
  • Loading branch information
necessarylion committed Nov 16, 2023
1 parent 1859c8e commit 820e315
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,18 @@ await redis.sendCommand(['GET', 'key'])
```dart
Redis redis = new Redis(RedisOptions(maxConnection: 10));
String? value = await redis.get('key');
```
```

## Pipelining

```dart
Redis redis = new Redis();
List<dynamic> result = await redis.multi()
.set('key', 'value')
.set('key2', 'value2')
.get('key')
.get('key2')
.exec()
// result => ['OK', 'OK', 'value', 'value2']
```

0 comments on commit 820e315

Please sign in to comment.