@postgresx/noredis-redis
v0.2.3
Published
Thin node-redis-shaped facade package for @postgresx/noredis migrations
Downloads
307
Readme
@postgresx/noredis-redis
Thin re-export package for projects using npm alias migrations such as:
{
"dependencies": {
"redis": "npm:@postgresx/noredis-redis"
}
}It exposes createRedisJsAdapter() from @postgresx/noredis/adapters/redis.
It is not a Redis protocol client and does not provide a drop-in createClient()
replacement. Create a normal PgredisClient first, then wrap it:
import { createPgredis } from "@postgresx/noredis";
import { createRedisJsAdapter } from "redis";
const pg = createPgredis({ sql });
const redis = createRedisJsAdapter({ client: pg });