title: What are the advantages of using Depends in FastAPI over just calling a dependent function/class?
body: <p>FastAPI provides a <a href="https://fastapi.tiangolo.com/tutorial/dependencies/" rel="noreferrer">way</a> to manage dependencies, like DB connection, via its own dependency resolution mechanism.</p>
  
  <p>It resembles a <code>pytest</code> fixture system.
  In a nutshell, you declare what you need in a function signature, and FastAPI will call the functions(or classes) you mentioned and inject the correct results when the handler is called.</p>
  
  <p>Yes, it does caching(during the single handler run), but can't we achieve the same thing using just <code>@lru_cache</code> decorator and simply calling those dependencies on each run? 
  Am I missing something?</p>