xpublish.dependencies.get_cache#

xpublish.dependencies.get_cache()[source]#

FastAPI dependency for accessing the application’s cache.

Use this callable as dependency in any FastAPI path operation function where you need access to the cache provided with the application.

This dummy dependency will be overridden when creating the FastAPI application.

Return type:

Cache