Home  >  Article  >  Backend Development  >  After the Memcache server hangs up, what will the Memcache client do?

After the Memcache server hangs up, what will the Memcache client do?

WBOY
WBOYOriginal
2016-08-04 09:20:021158browse

It was an interview question. What I already knew at the time was: Memcache’s consistency algorithm is implemented on the client side, but I don’t know how to solve this question. What knowledge points need to be examined? I don’t know what everyone thinks. If you have ideas, you can comment directly. Thank you~

Reply content:

It was an interview question. What I already knew at the time was: Memcache’s consistency algorithm is implemented on the client side, but I don’t know how to solve this question. What knowledge points need to be examined? I don’t know what everyone thinks. If you have ideas, you can comment directly. Thank you~

The data in memcached is all cached after checking it in mysql. If it fails, check mysql, and the mysql data will be synchronized with the new cache

Shouldn’t it be that the client reported a connection exception

http://php.net/manual/en/memc...

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn