Implement Redis Cache in Spring Boot Application — Part I (Theory)

Why?

How?

Where we can use?

What is Redis?

Multiple forms

  1. In-Memory Database : As an In-Memory database, We will get some empty memory to perform database operations. Moreover, it acts as No-SQL database and there are No Tables, No Sequences, No Joins concept. We can store data in the form of String, Hash Operations***, List, Set etc. In-built services will be available.
  2. Cache : We can also use Redis as a Cache to increase our application performance.
  3. Message Broker(MQ) : Another use of Redis is as a Message Broker.

What is Redis Cache?

What is the advantage of using Redis Cache in your application?

How does the Redis Cache work in the Application?

What is Redis Database?

What is Redis Server?

What are the important annotations to enable Redis Cache in the Application?

@EnableCaching

@Cacheable

@CachePut

@CacheEvict

Conclusion

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Liskov Substitution Principle

Getting Started with Configuration Management and Ansible

Learning Git and GitHub: Part 2

Raspberry PI 4 and Docker Series Part I - Setting up the core requirements

Difference between keywords, identifiers and variables

[C++] Vectors

Unreal Engine 5 — Multiplayer Template

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul issack minoltan

Paul issack minoltan

More from Medium

How to build robust microservices

Unit Testing

How to Work with Flyway Migration Scripts using MySQL Workbench

Getting started with SpringBoot