Strapi Middleware Cache

screenshot of Strapi Middleware Cache
strapi

:electric_plug: A cache middleware for https://strapi.io

Overview

The Strapi LRU Caching middleware is a legacy caching middleware for the headless CMS strapi.io. However, this project is no longer maintained and has been deprecated in favor of the Strapi Plugin Rest Cache. The maintainers have moved to the new plugin and recommend users to switch to the new and improved version.

Features

  • Middleware that caches incoming GET requests on the strapi API
  • Cache is automatically busted whenever a PUT, PATCH, POST, or DELETE request is made
  • Supports different storage engines, including memory (default) and Redis

Summary

The Strapi LRU Caching middleware is a legacy caching solution for the Strapi headless CMS. While it was once actively maintained, it has been deprecated in favor of the new Strapi Plugin Rest Cache. It provides the ability to cache incoming GET requests and automatically bust the cache on certain request types. It supports different storage engines, including memory and Redis.

strapi
Strapi

Strapi is an open source headless CMS that provides a customizable content management system and API for your projects. It allows you to manage content in a visual interface and use a REST or GraphQL API to retrieve the data.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.