Changed the process of setting namespace for memcache.