/nestjs-cache-module

NestJS Cache Module is a powerful cache library specifically designed for the NestJS framework. Built on top of the robust Node.js cache manager library, it provides a seamless integration of caching capabilities into your NestJS projects.

Primary LanguageTypeScript

NestJS Cache Module

NestJS Cache Module is a powerful wrapper library built specifically for the NestJS framework, designed to simplify and streamline caching operations in your NestJS projects. It is based on the popular Node.js cache manager library, but with added functionalities and decorators that reduce boilerplate code and provide an intuitive caching experience.

npm version run tests codecov

Key Features

  • Decorator Functions: The module provides a set of convenient decorators such as @CacheWrap, @CacheDel, @CacheSet, and @CacheGet that seamlessly integrate with your NestJS project. These decorators allow you to easily wrap methods, delete cached values, set new values, and retrieve cached data, all with minimal effort.

  • Reduced Boilerplate: With NestJS Cache Module, you can significantly reduce the amount of boilerplate code required for caching operations. The decorators handle the caching logic for you, so you can focus on building the core functionality of your application without getting bogged down in caching implementation details.

  • Simple Setup Process: Integrating NestJS Cache Module into your NestJS project is a breeze. The module provides clear and straightforward installation instructions, making it easy for you to get up and running quickly.

  • Flexible Cache Management: Leveraging the power of the underlying Node.js cache manager library, NestJS Cache Module offers a wide range of cache management options. You can choose from various caching strategies, including in-memory caching, Redis caching, and more, depending on your specific requirements.

  • Highly Customizable: The module allows you to customize caching configurations according to your needs. You can fine-tune cache expiration times, cache keys, cache prefixes, and other settings to ensure optimal performance and tailored caching behavior for your application.

2023-05-18 - WIP (working is in process, we will update documentation for this project soon)