Skip to content

Commit

Permalink
turn off caching for dependency in litestar integration
Browse files Browse the repository at this point in the history
  • Loading branch information
lesnik512 committed Nov 10, 2024
1 parent 7d74cab commit c7c6e3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/modern-di-litestar/modern_di_litestar/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ async def __call__(
return await self.dependency.async_resolve(request_di_container)


def FromDI(dependency: providers.AbstractProvider[T_co], *, use_cache: bool = True) -> Provide: # noqa: N802
return Provide(dependency=_Dependency(dependency), use_cache=use_cache)
def FromDI(dependency: providers.AbstractProvider[T_co]) -> Provide: # noqa: N802
return Provide(dependency=_Dependency(dependency), use_cache=False)

0 comments on commit c7c6e3c

Please sign in to comment.