https://github.com/lucemans/streams
Redis Queue & Job System Package
https://github.com/lucemans/streams
Last synced: 2 months ago
JSON representation
Redis Queue & Job System Package
- Host: GitHub
- URL: https://github.com/lucemans/streams
- Owner: lucemans
- Created: 2020-10-14T14:56:23.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-08-22T17:14:53.000Z (almost 5 years ago)
- Last Synced: 2024-05-01T16:44:36.757Z (about 2 years ago)
- Language: HTML
- Homepage:
- Size: 101 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### @lucemans
# Streams
## How to use
On the sending end
```typescript
const stream = new GenericStream(client, 'topic');
await stream.push('test-string');
```
On the receiving end
```typescript
const stream = new GenericStream(client, 'topic');
const result = await stream.pop();
console.log(result.value);
```