[1.5.x] Fixed #19823 -- Fixed memcached code example in cache docs

Backport of 668d0b8d from master.