0.2.0 • Published 6 years ago

@proc/context-redis v0.2.0

Weekly downloads
6
License
MIT
Repository
-
Last release
6 years ago

Redis with Context

A Redis connection for your context. Not much value added except that we manage the connection lifecycle. so after your parent context has .done() called, the connection is released and the application can shutdown sanely.

Usage

import { createContext } from "@proc/context";
import { createRedis } from "@proc/context-redis";

const getRedis = createRedis();

const ctx = createContext();

const r = getRedis(ctx);

r.set("foo", "bar").finally(() => {
  ctx.done(); //application will not be held open by the redis connection
});
0.2.0

6 years ago

0.1.36

6 years ago

0.1.35

6 years ago

0.1.32

6 years ago

0.1.28

6 years ago