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?
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