Pushes content changes from Payload to open pages without a reload
Redis Cache
Caches Payload API responses in Redis and clears them when content changes
Installation
pnpm add redis-payload About
Redis Cache stores responses from the Payload API in a Redis instance, so repeated requests for the same data are served from memory instead of hitting the database again. Cached entries are keyed by the requesting user's collection and the original URL, which keeps one user's response from leaking to another. When a document in a collection or global is created, updated or deleted, the related cached responses are cleared automatically. Collections, globals and custom routes can be excluded from caching, and the cache can be cleared manually from server code when a change happens outside Payload.
Package info
- Package name
redis-payload- Latest version
1.0.0- Unpacked size
- 49 kB
- License
- MIT
- Weekly downloads
- 4
- Last publish
- Mar 20, 2023
Similar plugins
More in CacheManaged redirects with cache-backed Next.js middleware and an orderable admin list
Moves frontend translation keys into the Payload database for editors to manage
Revalidates Next.js paths and cache tags when documents are published or deleted
Background jobs for scheduled publishing, cache revalidation and approval expiry
Revalidates Next.js cache tags for documents and their related content on save