add cache.hh, which was forgotten in the previous commit