olirice / cachetools_ext

cachetools extension adding backends
Other
9 stars 2 forks source link

extending to dynamodb / dynamodb-dax caching #2

Open thanakijwanavit opened 3 years ago

thanakijwanavit commented 3 years ago

dynamodb is much faster than s3 and would be an interesting addition to this excellent project. dax is even faster.

It would be great to extend a package like this and make it cachetools compatible

olirice commented 3 years ago

Thanks for reaching out

I don't currently plan to implement a dyanmo backend but I'd be happy to review a PR adding one that doesn't reduce test coverage. See the s3 tests for an example.

AFAIK this project is mostly used for caching large binary objects where download+deserialization time > 0.5 seconds so key lookup performance hasn't been a concern but supporting more real-time-ish use cases would be a nice feature

thanakijwanavit commented 3 years ago

alright, i will try extending, thanks for your code anyway, its great.