@skein-js/redis 0.2.1 → 0.4.0
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 +3 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -39,8 +39,8 @@ Construct with a Redis URL — there is no migration step:
|
|
|
39
39
|
```ts
|
|
40
40
|
import { RedisRunQueue, RedisRunEventBus } from "@skein-js/redis";
|
|
41
41
|
|
|
42
|
-
const queue = new RedisRunQueue(process.env.
|
|
43
|
-
const bus = new RedisRunEventBus(process.env.
|
|
42
|
+
const queue = new RedisRunQueue(process.env.REDIS_URI!);
|
|
43
|
+
const bus = new RedisRunEventBus(process.env.REDIS_URI!);
|
|
44
44
|
// Injected into the engine as deps.queue / deps.bus.
|
|
45
45
|
// …on shutdown, release the connections:
|
|
46
46
|
await queue.dispose();
|
|
@@ -48,7 +48,7 @@ await bus.dispose();
|
|
|
48
48
|
```
|
|
49
49
|
|
|
50
50
|
You normally get these via `skein dev --queue redis` / `skein up` and
|
|
51
|
-
[`@skein-js/runtime`](../runtime), which reads `
|
|
51
|
+
[`@skein-js/runtime`](../runtime), which reads `REDIS_URI` and constructs them for you.
|
|
52
52
|
|
|
53
53
|
## API
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skein-js/redis",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Redis job queue and cross-instance pub/sub streaming for skein-js.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Maina Wycliffe <wmmaina7@gmail.com>",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"ioredis": ">=5.4.0",
|
|
45
45
|
"bullmq": ">=5.0.0",
|
|
46
|
-
"@skein-js/core": "0.
|
|
46
|
+
"@skein-js/core": "0.4.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@skein-js/test-support": "0.
|
|
49
|
+
"@skein-js/test-support": "0.4.0"
|
|
50
50
|
},
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|