postgres-redis

JSON →
library 0.1.0 ·javascript
verified Jun 5, 2026

Caching layer for node-postgres (pg) that automatically caches SELECT query results in Redis. Version 0.1.0, experimental. Provides multiple hash types (farmhash32, farmhash64, blake2b512, full) for cache keys. Falls back to Postgres on Redis failure. Requires pg/pg-pool and redis/ioredis as peer dependencies. Distinct from other caching libraries by offering configurable hash strategies and per-query custom hashing.