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.
Traffic · last 30 days ↑300% vs prev 7d
total hits 10
actors 3 distinct systems
last hit 11d ago AhrefsBot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇪🇸 Spain · 🇫🇷 France · 🇨🇦 Canada
Resources
packagepg-cache ↗