pg-cache
JSON →PostgreSQL connection pool with built-in LRU cache management for Node.js. Version 3.12.0 provides a hybrid pool+cache layer that maintains connections via pg-pool while caching query results using an LRU strategy with configurable TTL and max entries. It automatically evicts stale data, supports parameterized queries, and integrates with TypeScript. Compared to raw pg-pool, pg-cache adds transparent result caching and cache invalidation hooks, reducing repeated DB hits without requiring a separate cache like Redis. Released under active development with monthly updates.
Resources
packagepg-cache ↗