Cache structure and working principle