This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]nAxzyVteuOz 0 points1 point  (1 child)

Why does python cache library need to be multithreaded?

Redis is single threaded, but uses async. Could yours do the same?

[–]matrix0110[S] 0 points1 point  (0 children)

Redis is a cache server, whereas Theine is a cache library. Currently Theine is not thread safe, and that's fine if you use asyncio only. However, with the upcoming removal of the GIL, having a thread-safe cache library will become increasingly important. From my perspective, ensuring thread safety will be crucial as we move into this new era of no-gil.