Templatize memcache package, add integration tests