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 profileDashboard Analytics
Adds Plausible and Google Analytics widgets to the Payload admin dashboard, navigation, collections and globals.
AI Completions
Payload plugin that generates field content through OpenAI chat completions from the admin panel.
Default Roles
Applies default role-based access control to every Payload collection, granting CRUD access to specified roles such as admin and executive.
Warding
RBAC plugin that generates user and role collections and injects fine-grained access control across Payload collections, globals, fields, and endpoints.
Iframe Tabs
Add iframes into separate tabs in the Payload admin panel.
Visual Editor
Adds a visual live editor to Payload CMS for instant content preview.