wooga / eredis

Erlang Redis client
MIT License
628 stars 280 forks source link

Is it thread(process) safe? #91

Closed enst closed 8 years ago

enst commented 8 years ago

Is it safe to share the same connection? (call from 2 or more erlang processes.)

Thanks,

knutin commented 8 years ago

Yes, it is safe, in fact, that's how to get the best performance. A single eredis connection can do many tens of thousands of requests per second.

enst commented 8 years ago

Thanks. I think I only have to take care of the "MULTI" situation just to avoid other processes do something in the middle of queueing commands in a transaction.