Martijn Pieters
416a4ec850
Explicitly list what names are exported
...
This signals to automated tools what names usually can be imported from
the package, as otherwise you'd get warnings like `"default_key_builder"
is not exported from module "fastapi_cache"`.
2023-04-28 14:40:31 +01:00
Martijn Pieters
255f40117b
Define keybuilder protocol
...
This lets others create key builders that are type checked fully.
2023-04-27 16:26:41 +01:00
Martijn Pieters
0d0fe1f0d0
Mark up the class variables as such
...
There is never an instance of this class, so these are not instance attributes.
2023-04-27 16:15:06 +01:00
Ivan Moiseev
c6bd8483a4
feat: fix tests and add FastAPICache init in tests.
2022-10-22 21:12:04 +04:00
Ivan Moiseev
68ef94f2db
feat: add more asserts for FastAPICache init
2022-10-22 21:05:43 +04:00
Ivan Moiseev
4c6abcf786
feat: add more type hints
2022-10-22 20:59:37 +04:00
thentgesMindee
309d9ce7d1
fix: 🐛 FastAPICache.clear clear whole prefix when namespace is None
2022-08-10 19:31:29 +02:00
long2ice
9928f4cda0
Add enable param to init
2021-10-28 15:52:21 +08:00
long2ice
e483e0dc55
add clear method
2020-11-03 18:08:06 +08:00
long2ice
dc2ac9cc90
Add default config when init
...
update JsonEncoder
2020-10-16 16:55:33 +08:00
long2ice
c0259bc699
Add in-memory support.
2020-10-08 15:10:34 +08:00
long2ice
c20bb73f27
first commit
2020-08-26 18:04:57 +08:00