diff --git a/fastapi_cache/decorator.py b/fastapi_cache/decorator.py index ee469a9..8c6052a 100644 --- a/fastapi_cache/decorator.py +++ b/fastapi_cache/decorator.py @@ -33,8 +33,6 @@ def cache( coder = coder or FastAPICache.get_coder() expire = expire or FastAPICache.get_expire() key_builder = key_builder or FastAPICache.get_key_builder() - request = kwargs.pop("request", None) - response = kwargs.pop("response", None) backend = FastAPICache.get_backend() cache_key = key_builder(func, namespace, args=args, kwargs=kwargs) ttl, ret = await backend.get_with_ttl(cache_key) diff --git a/pyproject.toml b/pyproject.toml index ee6242c..38c3faf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "fastapi-cache2" -version = "0.1.3.1" +version = "0.1.3.2" description = "Cache for FastAPI" authors = ["long2ice "] license = "Apache-2.0"