Pushes content changes from Payload to open pages without a reload
Redis Cache
Caches Payload API responses in Redis, keyed by user and request URL
Installation
pnpm add @aengz/payload-redis-cache About
Redis Cache stores the responses of Payload's API endpoints in a Redis instance, so repeated requests can be served from memory instead of hitting the database again. Each cached response is keyed by the requesting user's collection and the original URL, which keeps one user's data separate from another's. You can exclude specific collections and globals from caching, and add custom routes to the cache. A helper function lets your code clear the cache when content changes outside the normal admin flow.
Package info
- Package name
@aengz/payload-redis-cache- Latest version
1.1.1- Unpacked size
- 41 kB
- License
- MIT
- Weekly downloads
- 66
- Last publish
- Nov 7, 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