开发者

Why use MEMCACHED_BEHAVIOR_NOREPLY?

开发者 https://www.devze.com 2023-04-01 01:03 出处:网络
I 开发者_如何转开发am writing a library that wraps libmemcached. I noticed that there is an interesting behaviour setting for memcached which says that I can indicate that I do not care about the res

I 开发者_如何转开发am writing a library that wraps libmemcached.

I noticed that there is an interesting behaviour setting for memcached which says that I can indicate that I do not care about the results of my memcached commands...

It is known as MEMCACHED_BEHAVIOR_NOREPLY. Why would somebody want to use this?

It would be great if someone could point out a few use cases? multi-get / multi-set spring to mind, but I am not clear how this would be useful.


ASCII protocol noreply was a mistake. Don't use it.

Binary protocol noreply can be used to make really awesome optimizations without any loss of correctness.

0

精彩评论

暂无评论...
验证码 换一张
取 消