caching-tools/next-shared-cache
소개
Next.js를 간편하게 자체 호스팅할 수 있습니다.
학습 및 교육What you can do
- Shared Cache for Distributed Environments: Perfect for self-hosted deployments with multiple application instances.
- Easy Customization: Provides a straightforward API with pre-configured Handlers.
- On-Demand Revalidation: Simplifies revalidation across all application replicas.
- TTL Management: Automatic cache cleanup to keep storage space efficient.
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original@neshca/cache-handler
Welcome to @neshca/cache-handler (pronounced /ˈnæʃkʌ/), a specialized ISR/Data cache API crafted for Next.js applications. This library simplifies configuring shared cache strategies in distributed environments, such as multiple, independent application instances. It offers a flexible and easy-to-integrate solution for custom cache strategies, especially for Redis.
Features
- Shared Cache for Distributed Environments: Perfect for self-hosted deployments with multiple application instances.
- Easy Customization: Provides a straightforward API with pre-configured Handlers.
- On-Demand Revalidation: Simplifies revalidation across all application replicas.
- TTL Management: Automatic cache cleanup to keep storage space efficient.
- Support for Next.js Routers: Full support and one setup for the Pages and the App Router.
neshCacheFunction: Utilize theneshCache↗ function to replaceunstable_cachefor more control over caching.neshClassicCacheFunction: Use the CacheHandler in the Pages Router to cache the result of expensive operations in thegetServerSidePropsand API routes.- Pre-populate the Cache with Initial Data: Automatically pre-populate the cache with the initial data when the application starts using the instrumentation hook ↗.
Getting Started
Enhance your application's caching with our Installation and First Steps Guide. This guide covers installation, basic configuration, and practical examples for quick integration.
Examples
Explore the versatility of @neshca/cache-handler in our Examples Section with real-world scenarios. Learn how to build a custom Handler by following this guide.
Requirements
- Next.js: 13.5.1 or newer (below 15.0.0).
- Node.js: 18.17.0 or newer.
Documentation
For detailed documentation, visit our Documentation Page.
Contributing
We welcome contributions! Check out our Contributing Guide for more information.
License
This project is licensed under the MIT License.
관련 프로젝트 살펴보기
불러오는 중…