Yes, It’s thread safe. Basically, it depends on how you use it. Each thread should own a “redisContext “ for itself. If your multithread owns one global “redisContext”, it’s not safe.
Thanks,
David Li
发件人: redi...@googlegroups.com
[mailto:redi...@googlegroups.com] 代表 Ramprasad Padmanabhan
发送时间: 2015年6月24日 18:54
收件人:
redi...@googlegroups.com
主题: [redis-db] Is the
hiredis c client thread thread safe
I am using the
hiredis client to enqueue jobs in a milter process.
Milters are multithreaded running concurrent threads and all threads may be
connecting to redis at the same time
--
You received this message because you are subscribed to the Google Groups
"Redis DB" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to redis-db+u...@googlegroups.com.
To post to this group, send email to redi...@googlegroups.com.
Visit this group at http://groups.google.com/group/redis-db.
For more options, visit https://groups.google.com/d/optout.