cachew
cachew copied to clipboard
Transparent and persistent cache/serialization powered by type hints
It seems that an optional return type does not work as expected. Extending the test case in `def test_optional(tdir):` results in an error: ``` @cachew(tdir) def data() -> Optional[Job]: return...
Only recently realized that I could put `Dict`/`List` items as values on a NamedTuple cached by cachew, [previously was doing some weird stuff](https://github.com/seanbreckenridge/HPI/commit/cb6010caf323516aa480da907fa97f7fa7f932e6) So, in the process of switching more...
Path is a trivial wrapper around str. I guess generally think of a good way to allow adhoc mapping of simple types. Perhaps current Exception makes sense.
At the moment it's LRU(1) cache, it some usecases it makes sense to cache more values though
Add Redis support as an alternative to sqlite This would be a great feature as it will make this solution easier to use in an enterprise production environment as getting...
At the moment there are two separate tables: one for latest hash value, another for cached entities. It might be simpler and safer to keep a single table, with hash...
After recent `google_takeout_parser` update getting this: ``` ... File "/home/hpi/.local/lib/python3.12/site-packages/cachew/marshall/cachew.py", line 143, in load tidx, val = dct └ 62.81359 TypeError: cannot unpack non-iterable float object ``` Seems that this...
I don't see any obvious reason as to why not.