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
More from Aengz
View profileSimilar plugins
More in CacheBase64 image placeholder
Generates a base64-encoded placeholder image for Payload upload collections and stores it in a text field.
S3 Upload
Routes Payload CMS upload collections to Amazon S3, pushing the original file and every image size variant.
Media Preview
Preview images, videos, audio, and documents directly in the Payload CMS admin panel.
BlurHash
Generates BlurHash placeholders for images in Payload CMS collections.
Blurhash
Automatically encodes images in Blurhash format for Payload CMS.
ImageKit
Sync images to ImageKit storage directly from Payload CMS.