a-luna / fastapi-redis-cache

A simple and robust caching solution for FastAPI that interprets request header values and creates proper response header values (powered by Redis)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eTag generation should be optional and configured via a global setting AND a setting per-endpoint

a-luna opened this issue · comments

  • eTag generation should be "on" by default
  • Controlled by a value provided to the FastApiRedisCache.init() method (this Is the "global" setting)
  • Can also be configured per-endpoint by a value provided to the @cache decorator
  • The value provided to @cache overrides the global setting