mirror of
https://github.com/aljazceru/nutshell.git
synced 2026-01-07 02:44:19 +01:00
NUT-19: Cached Requests and Responses (#624)
* fast-api-cache setup * testing the cache * fix * still not working * asynccontextmanager * move test * use redis & custom caching setup (like CDK) * make format * poetry lock * fix format string + log when a cached response is found * log when a cahced response is found * fix tests * poetry lock * try tests on github * use docker compose * maybe we dont need docker * fix types * create_task instead of run * how about we start postgres * mint features * format * remove deprecated setex call * use global expiry for all cached routes * refactor feature map and set default to 1 week * refactor feature construction * Cache NUT-19 --------- Co-authored-by: callebtc <93376500+callebtc@users.noreply.github.com>
This commit is contained in:
@@ -39,6 +39,7 @@ googleapis-common-protos = "^1.63.2"
|
||||
mypy-protobuf = "^3.6.0"
|
||||
types-protobuf = "^5.27.0.20240626"
|
||||
grpcio-tools = "^1.65.1"
|
||||
redis = "^5.1.1"
|
||||
brotli = "^1.1.0"
|
||||
zstandard = "^0.23.0"
|
||||
|
||||
@@ -51,6 +52,7 @@ respx = "^0.21.1"
|
||||
ruff = "^0.7.1"
|
||||
mypy = "^1.13.0"
|
||||
pre-commit = "^4.0.1"
|
||||
types-redis = "^4.6.0"
|
||||
|
||||
[build-system]
|
||||
requires = ["poetry-core>=1.0.0"]
|
||||
|
||||
Reference in New Issue
Block a user