Redis Cache
Redis cache plugin for Payload CMS
Installation
pnpm add @aengz/payload-redis-cache About
The Payload Redis Cache plugin adds a caching layer to API endpoints of Payload CMS, enhancing performance by storing the results based on collection and request URL. Users can configure the cache with various options such as the Redis instance URL, namespaces for cache keys, and specify collections to exclude from caching. To integrate the plugin, it must be included in the Payload configuration. Users must initialize a Redis connection using their Redis URI, allowing for efficient cache management. Additionally, the plugin provides helper functions like `invalidateCache` for cache maintenance, ensuring that the cached data remains relevant. This plugin requires a running Redis instance and is compatible with Payload version 1.0.19 and higher. Users should ensure the Redis package is installed to utilize the plugin effectively.
Package info
- Package name
@aengz/payload-redis-cache- Latest version
1.1.1- Unpacked size
- 41 kB
- License
- MIT
- Weekly downloads
- 96
- Last publish
- Nov 7, 2023
Similar plugins
More in CacheCloud
Connects a Payload instance to Payload Cloud's managed S3 storage, Cloudflare CDN upload caching, and Resend email delivery.
Redis Cache
Redis-backed query caching layer for Payload v3 that intercepts database adapter read and write operations.
ISR revalidation
Integrates ISR-style cache revalidation into Payload CMS for Next.js.