{"repo":"caching-tools/next-shared-cache","free":true,"listed":false,"github":"https://github.com/caching-tools/next-shared-cache","clone":"git clone https://github.com/caching-tools/next-shared-cache.git","description":"Next.js self-hosting simplified","language":"TypeScript","stars":540,"topics":["cache","isr","nextjs","redis"],"license":"MIT","category":"databases-storage","readme_excerpt":"@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. - neshCache Function : Utilize the neshCache ↗ function to replace unstable cache for more control over caching. - neshClassicCache Function : Use the CacheHandler in the Pages Router to cache the result of expensive operations in the getServerSideProps and 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 Expl","default_branch":null,"files":null,"tree":[],"storefront":"/r/caching-tools","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/caching-tools/next-shared-cache/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}