An open API service indexing awesome lists of open source software.

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

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);
```