Move memcache command code to separate files.