add compare scaffold and in-mem cache