Add and refactor Memcached configurations