Update cache.hh

Don't use global typedefs