Martijn Pieters
d9965a45e5
Make decorator responsibe for applying the prefix
...
The key builder should not have to fetch the prefix separately, as this
makes creating custom key builders that much harder.
2023-05-10 18:59:59 +01:00
Martijn Pieters
9c966286b4
Use complete type hints with all generic parameters filled
...
This makes the core fastapi_cache pass all strict type checker tests.
2023-04-27 16:31:42 +01:00
Martijn Pieters
32acafa5e0
Correct type hint: namespace is not optional
...
The namespace argument is positional and will never be `None` so should
not be marked as Optional. It is always a string, and the default is
to pass in an empty string.
2023-04-27 16:11:59 +01:00
long2ice
8f0920d0d7
ci: fix
2022-11-07 16:39:17 +08:00
Ivan Moiseev
4c6abcf786
feat: add more type hints
2022-10-22 20:59:37 +04:00
long2ice
767241be41
- Fix redis cache.
...
- Encode key builder.
2021-07-26 16:33:22 +08:00
long2ice
8573eeace6
fix ci
2021-03-20 14:47:46 +08:00
long2ice
1d0c245a70
- Fix default expire for memcached. ( #13 )
...
- Update default key builder. (#12 )
2021-03-20 14:42:29 +08:00
long2ice
a42fdaf632
Fix cache key builder.
2021-01-06 10:34:30 +08:00
long2ice
dc2ac9cc90
Add default config when init
...
update JsonEncoder
2020-10-16 16:55:33 +08:00