This project demonstrates the integration of Spring Boot with Redis caching to create a RESTful API for managing invoices. The application uses Redis as a caching mechanism to optimize database queries and improve performance when fetching and managing invoice records.
- Create, retrieve, update, and delete invoice records via RESTful API endpoints.
- Utilize Redis caching to store and retrieve invoice data, reducing database load.
- Implement error handling and exception classes for better control of error responses.
- Follow the Model-View-Controller (MVC) design pattern for clean and modular code structure.
- Leverage Spring Data JPA for seamless interaction with the underlying database.
- Use Spring Boot's built-in caching annotations to simplify caching configurations.
- Spring Boot
- Spring Data JPA
- Redis Caching
- RESTful API
- Java
- Maven
- Clone this repository to your local machine.
- Configure your Redis server connection details in the
application.properties
file. - Build the project using Maven:
mvn clean install
- Run the application:
mvn spring-boot:run
POST /redis/v1/invoice/saveInv
: Create a new invoice record.GET /redis/v1/invoice/allInv
: Fetch all invoice records.GET /redis/v1/invoice/getOne/{invId}
: Fetch a specific invoice by ID.PUT /redis/v1/invoice/modify/{invId}
: Update an existing invoice record.DELETE /redis/v1/invoice/delete/{invId}
: Delete an invoice record by ID.
Contributions, issues, and feature requests are welcome! Feel free to check the Issues page.
This project is licensed under the MIT License.