amakawa / redic

Lightweight Redis Client
MIT License
120 stars 14 forks source link

Added a Thread safe Queue #2

Closed Asmod4n closed 10 years ago

Asmod4n commented 10 years ago

I believe this is safe enough to use Redic in a threaded App and doesn't change the API.

frodsan commented 10 years ago

Could you add some tests please?

Asmod4n commented 10 years ago

I believe you need Thread.current[] for the queue.. or else it will produce Protocol errors when used in a concurrent app.