Create a factory for Memcached instance (only way to make persistent connection work)