Skip to content

Commit

Permalink
update redis with fastapi
Browse files Browse the repository at this point in the history
  • Loading branch information
emptymalei committed Oct 31, 2023
1 parent 69a31ae commit 5ebcfda
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions content/wiki/computation/basics-of-redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ references:
link: "https://www.youtube.com/watch?v=qr4FVhBTq0I"
- name: "Redis with Python for Data Science"
link: "https://www.youtube.com/watch?v=Koh6piVaYh0"
- name: "Full Stack Book. FastAPI Redis Tutorial. YouTube. 2022. Available: https://www.youtube.com/watch?v=reNPNDustQU"
link: "https://www.youtube.com/watch?v=reNPNDustQU"
key: "fsb_fastapi"
weight:
links:
- "wiki/computation/basics-of-mongodb.md"
Expand Down Expand Up @@ -88,7 +91,8 @@ Redis can be used as a handy data storage for data science projects. It can also
### Test

Invoke the command line
```

```sh
redis-cli
```

Expand All @@ -103,7 +107,7 @@ redis-cli

[redis on pypi](https://pypi.org/project/redis/)

```
```python
import redis

r \= redis.Redis(host\='localhost', port\=6379, db\=0)
Expand All @@ -117,4 +121,14 @@ print(
r.get('test')

)
```
```

### FastAPI

The youtube channel Full Stack Book made a short video on how to integrate redis into FastAPI[^fsb_fastapi].

{{< youtube reNPNDustQU >}}


[^fsb_fastapi]: {{< cite key="fsb_fastapi" >}}

0 comments on commit 5ebcfda

Please sign in to comment.