@mastra/redis-streams 0.4.1-alpha.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -0
- package/package.json +7 -7
package/README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# @mastra/redis-streams
|
|
2
|
+
|
|
3
|
+
`RedisStreamsPubSub` implements Mastra's PubSub and lease-provider contracts with Redis Streams. Use it for durable event delivery, consumer-group coordination, and workflow leases across multiple processes or hosts.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @mastra/redis-streams
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Mastra } from '@mastra/core/mastra';
|
|
15
|
+
import { RedisStreamsPubSub } from '@mastra/redis-streams';
|
|
16
|
+
|
|
17
|
+
export const mastra = new Mastra({
|
|
18
|
+
pubsub: new RedisStreamsPubSub({
|
|
19
|
+
url: process.env.REDIS_URL!,
|
|
20
|
+
keyPrefix: 'mastra:my-app',
|
|
21
|
+
}),
|
|
22
|
+
});
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Documentation
|
|
26
|
+
|
|
27
|
+
- [Reference: RedisStreamsPubSub](https://mastra.ai/reference/pubsub/redis-streams)
|
|
28
|
+
|
|
29
|
+
## Changelog
|
|
30
|
+
|
|
31
|
+
See the [package changelog](https://github.com/mastra-ai/mastra/blob/main/pubsub/redis-streams/CHANGELOG.md) for version history and release notes.
|
|
32
|
+
|
|
33
|
+
## Support
|
|
34
|
+
|
|
35
|
+
We have an [open community Discord](https://discord.gg/mastra-ai). Come and say hello and let us know if you have any questions or need any help getting things running.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/redis-streams",
|
|
3
|
-
"version": "0.4.1
|
|
3
|
+
"version": "0.4.1",
|
|
4
4
|
"description": "Mastra Redis Streams PubSub integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,12 +36,12 @@
|
|
|
36
36
|
"typescript": "^7.0.2",
|
|
37
37
|
"vitest": "4.1.10",
|
|
38
38
|
"zod": "^4.4.3",
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@mastra/
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@internal/
|
|
39
|
+
"@internal/ai-sdk-v5": "0.0.77",
|
|
40
|
+
"@internal/types-builder": "0.0.105",
|
|
41
|
+
"@mastra/deployer": "1.64.0",
|
|
42
|
+
"@mastra/libsql": "1.22.3",
|
|
43
|
+
"@mastra/core": "1.64.0",
|
|
44
|
+
"@internal/lint": "0.0.130"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@mastra/core": ">=1.0.0-0 <2.0.0-0"
|