Skip to content

Commit

Permalink
add readme, update conf
Browse files Browse the repository at this point in the history
  • Loading branch information
yennanliu committed Dec 8, 2024
1 parent 99819db commit 8b49a02
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions projects_basic/RedisCache1/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# RedisCache1

- Basic `cache` via `Redis`


## Run

```bash

# step 1) run redis
brew services start redis
# check
redis-cli ping


# step 2) run BE app
```

## Test

```bash
curl http://localhost:8080/user/1

curl http://localhost:8080/user/2
```
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
spring.application.name=RedisCache1
server.port=8080

# redis
spring.cache.type=redis
Expand Down

0 comments on commit 8b49a02

Please sign in to comment.