File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -326,9 +326,10 @@ def get_user(id: int, db: Session = Depends(get_db)):
326326 return db.query(models.User).filter(models.User.id == id ).first()
327327```
328328
329- In the [ Initialize Redis] ( #initialize-redis ) section of this document, the
330- ` FastApiRedisCache.init ` method was called with `ignore_arg_types=[ Request,
331- Response, Session] ` . Why is it necessary to include ` Session` in this list?
329+ In the [ Initialize Redis] ( #initialize-redis-in-your-fastapi-application ) section
330+ of this document, the ` FastApiRedisCache.init ` method was called with
331+ ` ignore_arg_types=[Request, Response, Session] ` . Why is it necessary to include
332+ ` Session ` in this list?
332333
333334Before we can answer that question, we must understand how a cache key is
334335created. If the following request was received: ` GET /get_user?id=1 ` , the cache
You can’t perform that action at this time.
0 commit comments