Adds Cache class.