Add cache getter.