Home >Backend Development >PHP Tutorial >What exactly does the hit rate of memcache refer to?

What exactly does the hit rate of memcache refer to?

WBOY
WBOYOriginal
2016-07-06 13:52:521006browse

What exactly does the hit rate of memcache refer to?

Reply content:

What exactly does the hit rate of memcache refer to?

Hit rate = get_hits/cmd_get * 100%

  • cmd_get #get command (get) total number of requests

  • get_hits #Total Hits

The hit rate of memcache usually refers to the probability of hitting the memcache cache when fetching data.
Usually when memcache is used, it is a cluster. In a cluster, there will be N memcached servers. Different servers store different data, so when fetching data: (Successfully fetched from memcached Data received/Total data requests) . This is the hit rate

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