Introduction

Memcached is a caching server that helps accelerate client requests.

Setup

Here’s documentation for setting up a memcached cache server:

Installing memcached And The PHP5 memcache Module

Other

To get statistics on memcached and calculate hits and ratios:

  echo -en "stats\r\n" "quit\r\n" | nc localhost 11211 | tr -s [:cntrl:] " "| cut -f42,48 -d" " | sed "s/\([0-9]*\)\s\([0-9]*\)/ \2\/\1*100/" | bc -l
  

Last updated 27 Nov 2009, 20:20 +0200. history