throw exception when cache is full