requests-cache / aiohttp-client-cache

An async persistent cache for aiohttp requests
MIT License
118 stars 20 forks source link

Clean up request locks #228

Closed JWCook closed 7 months ago

JWCook commented 7 months ago

Follow-up from #227.

For a long-running cache with a large number of unique requests, the number of cache keys in memory could start to add up. With the current hash function (sha256), that's roughly 1MB per 6K unique requests (~113B per the hex digest, ~56B per lock object).

Possible solutions would include: