mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
|
History
|
||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| docker-compose.yaml | ||
| lint-staged.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@mastra/valkey-streams
ValkeyStreamsPubSub implements Mastra's PubSub and lease-provider contracts with Valkey Streams through Valkey GLIDE. Use it for durable event delivery and distributed workflow coordination when your infrastructure is built on Valkey.
Installation
npm install @mastra/valkey-streams
Usage
import { Mastra } from '@mastra/core/mastra';
import { ValkeyStreamsPubSub } from '@mastra/valkey-streams';
export const mastra = new Mastra({
pubsub: new ValkeyStreamsPubSub({
url: process.env.VALKEY_URL!,
keyPrefix: 'mastra:my-app',
}),
});
Documentation
Changelog
See the package changelog for version history and release notes.
Support
We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.