Is PHP Memcached thread safe?


Should I be worried about one script modifying a "Memcached" entry while another is reading it?

I didn’t find nothing in the official documentation.

>Solution :

Yes, it is threadsafe. It is based on libmemcached which itself states as threadsafe in the documentation.

Both memcached_pool_release() and memcached_pool_fetch() are thread safe.

Leave a ReplyCancel reply