Documentation

PgCache is a transparent caching proxy for PostgreSQL. Point your application at PgCache instead of your origin database — no code changes — and it caches query results and keeps them consistent with the origin through logical replication.

PgCache is source-available under the Elastic License 2.0. You can run it, modify it and self-host it, including in production. The one thing the license rules out is offering PgCache to others as a managed service.

New here? Start with Getting Started to get a proxy running in a few minutes, then read How Caching Works to understand what gets cached and the consistency model. The Configuration and Compatibility references cover every setting and which query patterns are cached.

For background on what Postgres already caches on its own, and when a result cache helps, see our guide to PostgreSQL caching.

Get started

Concepts

Reference

Operations

Deploy

Changelog