In this video tutorial I teach you how to install and set up redis database with your spring boot application.
What is Redis?
Redis is an open-source, in-memory key-value database system. It stores data in memory as key-value pairs and provides high throughput, low latency data access. Redis stores data in memory, making it extremely fast for data retrieval. This makes it ideal for caching frequently accessed data, which can significantly reduce the load on the database.
Install wsl on windows to add ubuntu:
[ Ссылка ]
Windows terminal:
[ Ссылка ]
Intellij IDE:
[ Ссылка ]
Postgres Install Windows
[ Ссылка ]
Install redis on windows:
[ Ссылка ]
Install redis on windows ubuntu commands:
```bash
curl -fsSL [ Ссылка ] | sudo gpg --dearmor -o /usr/share/keyrings/redis-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/redis-archive-keyring.gpg] [ Ссылка ] $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/redis.list
sudo apt-get update
sudo apt-get install redis
```
start redis server
```bash
sudo service redis-server start
```
test redis server is running
```bash
redis-cli
ping
```
get all redis keys
```bash
redis-cli
KEYS *
```
flush all keys
``bash
redis-cli
FLUSHALL
```
Source Code:
[ Ссылка ]
Cache Pokemon with Spring Boot 3 and Redis
Теги
spring bootspringbootspring boot 3redis databaseredis cachingdatabasepostgrespokemonpostgres databaseredis tutorialspring frameworkwindowsgradlespring boot rediscachingcachejava 21java 17peer programmingmicrosoftdatabase cachingshahidfoyshahidfoyshahid foypostgres sqlsqljavaprogramminglearnhow to use redis cachingredis caching tutorialspring boot cachingspring boot postgresspring boot redis tutorial2024learn spring boot