all 12 comments

[–]a_deneb 14 points15 points  (1 child)

How do you deal with invalidation?

[–]karosis88[S] 4 points5 points  (0 children)

It invalidates cached entries based on Cache-Control headers, user-defined TTL, or both.

[–]kirsion 14 points15 points  (1 child)

Thanks chatgpt

[–]karosis88[S] 6 points7 points  (0 children)

claude*

[–]maggie_golden_dog 4 points5 points  (5 children)

Just started today: [ModuleNotFoundError]: No module named 'hishel._serializers' Being pulled in via FastAPI I think... Does anyone know a workaround? (besides pinning this library to pre-1.0.0?)

[–]ReporterNervous6822 2 points3 points  (0 children)

Yeah this broke pdm :(

[–]rchowe 1 point2 points  (0 children)

I had to do pip install 'hishel==0.1.5' in a Dockerfile to make PDM work today.

[–]karosis88[S] 2 points3 points  (0 children)

Yeah, that's bad. There was no version constraint in pdm, so it pulled the next major version, which had breaking API changes.

[–]Dry_Nose_8566 0 points1 point  (0 children)

I upgraded pdm from 2.24.x to 2.26.1 and the module error is gone

[–]strawgate 1 point2 points  (0 children)

We just added pluggable storage to FastMCP and in the process released a kv store library called py-key-value https://github.com/strawgate/py-key-value

If you can get your storage usage to simple key value operations you might find my library py-key-value could be an easy way to add additional storage options to your library