Make memcache setup configurable