Implement memcache append and prepend commands.